Skip to content

Commit b963281

Browse files
committed
jest and jest-cli updated
1 parent b4093bb commit b963281

File tree

3 files changed

+1896
-793
lines changed

3 files changed

+1896
-793
lines changed

app/javascript/spec/breadcrumbs/on-click-functions.spec.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ describe('Breadcrumbs onClick functions', () => {
6565
});
6666

6767
describe('onClickToExplorer', () => {
68+
const realLocation = window.location;
69+
70+
beforeAll(() => {
71+
delete window.location;
72+
window.location = { ...realLocation, assign: jest.fn() };
73+
});
74+
afterAll(() => {
75+
window.location = realLocation;
76+
});
77+
6878
it('calls prevent default', () => {
6979
window.miqCheckForChanges = () => false;
7080

@@ -75,7 +85,6 @@ describe('Breadcrumbs onClick functions', () => {
7585

7686
it('calls location assign', () => {
7787
window.miqCheckForChanges = () => true;
78-
window.location.assign = jest.fn();
7988

8089
onClickToExplorer(event, 'pxe', 'explorer');
8190

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
"identity-obj-proxy": "^3.0.0",
151151
"imports-loader": "~0.8.0",
152152
"jasmine-jquery": "~2.1.1",
153-
"jest": "~24.9.0",
154-
"jest-cli": "~24.9.0",
153+
"jest": "~26.6.3",
154+
"jest-cli": "~25.5.4",
155155
"js-yaml": "~3.13.1",
156156
"ng-annotate-loader": "~0.7.0",
157157
"node-fetch": "~2.6.1",
@@ -198,7 +198,6 @@
198198
"nwsapi": "^2.2.1",
199199
"path-to-regexp": "~8.0.0",
200200
"patternfly": "~3.59.5",
201-
"terser": "~4.8.1",
202-
"form-data": "~4.0.4"
201+
"terser": "~4.8.1"
203202
}
204203
}

0 commit comments

Comments
 (0)