1
0
mirror of synced 2025-12-10 08:28:08 +08:00

Dev: Disable console count view src

This commit is contained in:
surunzi
2016-08-30 22:10:20 +08:00
parent 1059713038
commit 499b1e5a9a
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ export default class Logger extends util.Emitter
!util.isUndef(count[label]) ? count[label]++ : count[label] = 1;
return this.log(`%c${label}: ${count[label]}`, 'color:#2196f3');
return this.html(`<div class="eruda-blue">${label}: ${count[label]}</div>`);
}
assert(...args)
{

View File

@@ -63,7 +63,7 @@ describe('log', function ()
{
tool.clear().count('test').clear();
tool.count('test');
expect($tool.find('.eruda-log')).toContainText('test: 2');
expect($tool.find('.eruda-html')).toContainText('test: 2');
});
});