Skip to content

Commit a0031e2

Browse files
committed
chore: Upgrade jest to 23.6.0
The failed tests that had to be fixed relate to jestjs/jest#6792
1 parent 3e16607 commit a0031e2

File tree

6 files changed

+134
-125
lines changed

6 files changed

+134
-125
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"enzyme-to-json": "3.3.1",
112112
"eslint": "4.4.1",
113113
"eslint-config-sentry-app": "1.4.3",
114-
"jest": "23.4.0",
114+
"jest": "23.6.0",
115115
"jest-junit": "^3.4.1",
116116
"mockdate": "2.0.2",
117117
"prettier": "1.7.4",

tests/js/spec/components/modals/sudoModal.spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,6 @@ describe('Sudo Modal', function() {
153153

154154
// Should have Modal + input
155155
expect(wrapper.find('ModalDialog input')).toHaveLength(0);
156-
expect(wrapper.find('Button').prop('href')).toMatch('/auth/login/?next=blank');
156+
expect(wrapper.find('Button').prop('href')).toMatch('/auth/login/?next=%2F');
157157
});
158158
});

tests/js/spec/views/__snapshots__/installWizard.spec.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ exports[`InstallWizard renders 1`] = `
115115
allowEmpty={false}
116116
component={[Function]}
117117
default="root@localhost"
118-
defaultValue="sentry@"
118+
defaultValue="sentry@localhost"
119119
disabled={false}
120120
disabledReason={null}
121121
help="Email address to be used in From for all outbound email."
@@ -146,7 +146,7 @@ exports[`InstallWizard renders 1`] = `
146146
onChange={[Function]}
147147
required={true}
148148
type="email"
149-
value="sentry@"
149+
value="sentry@localhost"
150150
/>
151151
<p
152152
className="help-block"

tests/js/spec/views/admin/__snapshots__/adminSettings.spec.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports[`AdminSettings render() renders 1`] = `
4343
<TextField
4444
allowEmpty={true}
4545
default=""
46-
defaultValue="about://"
46+
defaultValue="http://localhost"
4747
disabled={true}
4848
disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
4949
help="The root web address which is used to communicate with the Sentry backend."

tests/js/spec/views/settings/organizationIntegrations/addIntegration.spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('AddIntegration', function() {
3030

3131
const newIntegration = {
3232
source: null,
33-
origin: 'null',
33+
origin: 'http://localhost',
3434
data: {
3535
success: true,
3636
data: Object.assign({}, integration, {

0 commit comments

Comments
 (0)