Check for forgotten console and debugger statements

This commit is contained in:
Steve Gravrock
2020-09-17 13:33:25 -07:00
parent 795651d3b6
commit 7d5ca27b9d
4 changed files with 13 additions and 1 deletions

View File

@@ -104,6 +104,7 @@ describe('HtmlReporter', function() {
passedExpectations: [],
failedExpectations: []
});
/* eslint-disable-next-line no-console */
expect(console.warn).toHaveBeenCalledWith(
"Spec 'Some Name' has no expectations."
);
@@ -118,6 +119,7 @@ describe('HtmlReporter', function() {
passedExpectations: [],
failedExpectations: []
});
/* eslint-disable-next-line no-console */
expect(console.error).toHaveBeenCalledWith(
"Spec 'Some Name' has no expectations."
);