Skip to content

Commit 352fd80

Browse files
committed
Mark empty functions as intentionally empty
1 parent b92b382 commit 352fd80

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test-utils.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
/* eslint-env jest */
22

33
export function muteConsole() {
4-
jest.spyOn(global.console, 'log').mockImplementation(() => {});
5-
jest.spyOn(global.console, 'error').mockImplementation(() => {});
6-
jest.spyOn(global.console, 'warn').mockImplementation(() => {});
4+
jest.spyOn(global.console, 'log').mockImplementation(() => {
5+
// Intentionally empty
6+
});
7+
jest.spyOn(global.console, 'error').mockImplementation(() => {
8+
// Intentionally empty
9+
});
10+
jest.spyOn(global.console, 'warn').mockImplementation(() => {
11+
// Intentionally empty
12+
});
713
}
814

915
export function restoreConsole() {

0 commit comments

Comments
 (0)