Skip to content

Commit fe48dfa

Browse files
authored
test(logging.html): Polymer#5007 make sure _logger called one time
I really don't think its useful/necessary
1 parent bd5821b commit fe48dfa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/unit/logging.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,17 @@
8888
suite('_logger', () => {
8989
test('_log with single parameter', () => {
9090
const msg = 'log test';
91-
let logedMsg;
91+
const logHistory = [];
9292
const orgConsole = console;
9393
window.console = {
9494
log: msg => {
95-
logedMsg = msg;
95+
logHistory.push(msg);
9696
}
9797
};
9898
Polymer.Base._log(msg);
9999
window.console = orgConsole;
100-
assert.equal(msg, logedMsg);
100+
assert.equal(logHistory[0], msg);
101+
assert.equal(logHistory.length, 1, 'console.log called more than one time');
101102
});
102103
});
103104
</script>

0 commit comments

Comments
 (0)