refactor(lint): Don't allow console.log
Enable tslint check for `console.log` as a follow-up to https://github.com/angular/angular/issues/13018
This commit is contained in:
@ -24,7 +24,6 @@ describe('ng2 largetable benchmark', function() {
|
||||
|
||||
['interpolation', 'interpolationAttr', 'interpolationFn'].forEach(function(benchmarkType) {
|
||||
it('should log the ng stats with: ' + benchmarkType, function(done) {
|
||||
console.log('executing for type', benchmarkType);
|
||||
runClickBenchmark({
|
||||
url: URL,
|
||||
buttons: ['#ng2DestroyDom', '#ng2CreateDom'],
|
||||
|
@ -51,7 +51,6 @@ export function profile(create: () => void, destroy: () => void, name: string) {
|
||||
destroy();
|
||||
}
|
||||
window.console.profileEnd();
|
||||
window.console.log(`Iterations: ${count}; time: ${duration / count} ms / iteration`);
|
||||
|
||||
window.console.profile(name + ' w/o GC');
|
||||
duration = 0;
|
||||
@ -63,7 +62,6 @@ export function profile(create: () => void, destroy: () => void, name: string) {
|
||||
destroy();
|
||||
}
|
||||
window.console.profileEnd();
|
||||
window.console.log(`Iterations: ${count}; time: ${duration / count} ms / iteration`);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user