diff --git a/test/unit/logging.html b/test/unit/logging.html index fbe484549e..0a37b9301e 100644 --- a/test/unit/logging.html +++ b/test/unit/logging.html @@ -78,6 +78,19 @@ assert.deepEqual(fnEl.stream, [{level: 'log', args: ['fn']}, {level: 'warn', args: ['fn']}, {level: 'error', args: ['fn']}]); assert.deepEqual(classEl.stream, [{level: 'log', args: ['class']}, {level: 'warn', args: ['class']}, {level: 'error', args: ['class']}]); }); + test('_log with single parameter', () => { + const msg = 'log test'; + let logedMsg; + const orgConsole = console; + window.console = { + log: msg => { + logedMsg = msg + } + }; + Polymer.Base._log(msg); + window.console = orgConsole; + assert.equal(msg, logedMsg); + }); test('_logf', () => { let args = ['hi', 'there']; let output = fnEl._logf(...args); @@ -87,4 +100,4 @@ }); - \ No newline at end of file +