diff --git a/test/unit/logging.html b/test/unit/logging.html index cf798d51b2..a2942d9a66 100644 --- a/test/unit/logging.html +++ b/test/unit/logging.html @@ -78,6 +78,14 @@ 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('_logf', () => { + let args = ['hi', 'there']; + let output = fnEl._logf(...args); + assert.oneOf(fnEl.is, output, `${fnEl.is} should be in ${output}`); + assert.includeMembers(output, args, `${args} should be in ${output}`); + }); + }); + suite('_logger', () => { test('_log with single parameter', () => { const msg = 'log test'; let logedMsg; @@ -91,12 +99,6 @@ window.console = orgConsole; assert.equal(msg, logedMsg); }); - test('_logf', () => { - let args = ['hi', 'there']; - let output = fnEl._logf(...args); - assert.oneOf(fnEl.is, output, `${fnEl.is} should be in ${output}`); - assert.includeMembers(output, args, `${args} should be in ${output}`); - }); });