Skip to content

Commit

Permalink
fine, console.dir then
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Apr 11, 2016
1 parent 6d39644 commit c8cb3be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/base.html
Expand Up @@ -156,17 +156,17 @@
test('only allow logging methods', function() {
var warnStub = sinon.stub(console, 'warn');
var errorStub = sinon.stub(console, 'error');
var traceStub = sinon.stub(console, 'trace');
var dirStub = sinon.stub(console, 'dir');
var args = ['hi'];
Polymer.Base._logger('warn', args);
Polymer.Base._logger('error', args);
Polymer.Base._logger('trace', args);
Polymer.Base._logger('dir', args);
warnStub.restore();
errorStub.restore();
traceStub.restore();
dirStub.restore();
assert.equal(warnStub.callCount, 1);
assert.equal(errorStub.callCount, 1);
assert.equal(traceStub.callCount, 0);
assert.equal(dirStub.callCount, 0);
});

test('logging methods accept strings or an array', function() {
Expand Down

0 comments on commit c8cb3be

Please sign in to comment.