Skip to content

Commit 5c1f9c2

Browse files
committed
linting
1 parent 40e21f0 commit 5c1f9c2

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

node_package/tests/jest.setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ if (typeof window !== 'undefined') {
6363
global.ReadableStreamDefaultReader = ReadableStreamDefaultReader;
6464
}
6565

66-
global.console.log("All calls to console have been disabled in jest.setup.js")
66+
global.console.log('All calls to console have been disabled in jest.setup.js');
6767

6868
global.console = {
6969
log: jest.fn(),
7070
error: jest.fn(),
7171
warn: jest.fn(),
7272
info: jest.fn(),
7373
debug: jest.fn(),
74-
}
74+
};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import ReactOnRails from 'react-on-rails';
22

33
test('ReactOnRails', () => {
4-
ReactOnRails.register({});
4+
expect(() => {
5+
ReactOnRails.register({});
6+
}).not.toThrow();
57
});
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const ReactOnRails = require('react-on-rails').default;
22

33
test('ReactOnRails', () => {
4-
ReactOnRails.register({});
4+
expect(() => {
5+
ReactOnRails.register({});
6+
}).not.toThrow();
57
});

0 commit comments

Comments
 (0)