Skip to content

Commit 5cb4543

Browse files
Merge pull request #9539 from elsamaryv/update-form-data
Update jest, cypress packages to resolve security issues caused by form-data
2 parents 94786b7 + f18bef0 commit 5cb4543

File tree

3 files changed

+1448
-57
lines changed

3 files changed

+1448
-57
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"core-js": "~3.6.4",
131131
"core-js-compat": "~3.2.1",
132132
"css-loader": "~3.4.2",
133-
"cypress": "~14.4.0",
133+
"cypress": "~14.5.0",
134134
"duplicate-package-checker-webpack-plugin": "~3.0.0",
135135
"enhanced-resolve": "~4.0.0",
136136
"enzyme": "^3.9.0",
@@ -150,7 +150,7 @@
150150
"identity-obj-proxy": "^3.0.0",
151151
"imports-loader": "~0.8.0",
152152
"jasmine-jquery": "~2.1.1",
153-
"jest": "~24.9.0",
153+
"jest": "~26.6.3",
154154
"jest-cli": "~24.9.0",
155155
"js-yaml": "~3.13.1",
156156
"ng-annotate-loader": "~0.7.0",

0 commit comments

Comments
 (0)