Skip to content

Commit 7ad78c3

Browse files
daleaguilmarkstory
authored andcommitted
Update setup.js (#15368)
1 parent 17755e9 commit 7ad78c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/js/setup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,20 +132,20 @@ jest.mock('popper.js', () => {
132132
};
133133
});
134134

135-
// We generally use actual jQuery, and jest mocks takes precedence over node_modules
135+
// We generally use actual jQuery, and jest mocks takes precedence over node_modules.
136136
jest.unmock('jquery');
137137

138138
/**
139139
* Test Globals
140140
*/
141141

142-
// This is so we can use async/await in tests instead of wrapping with `setTimeout`
142+
// This is so we can use async/await in tests instead of wrapping with `setTimeout`.
143143
window.tick = () => new Promise(resolve => setTimeout(resolve));
144144

145145
window.$ = window.jQuery = jQuery;
146146
window.scrollTo = jest.fn();
147147

148-
// this is very commonly used, so expose it globally
148+
// This is very commonly used, so expose it globally.
149149
window.MockApiClient = require.requireMock('app/api').Client;
150150

151151
window.TestStubs = {

0 commit comments

Comments
 (0)