Skip to content

Commit d85300f

Browse files
author
Ives van Hoorne
committed
Fix tests
1 parent 8db013d commit d85300f

File tree

2 files changed

+8
-28
lines changed

2 files changed

+8
-28
lines changed
Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,9 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`it handles normal deps correctly 1`] = `
4-
Object {
5-
"dependency": "redux-form",
6-
"path": "redux-form",
7-
}
8-
`;
3+
exports[`it handles normal deps correctly 1`] = `"Could not find dependency: 'redux-form'"`;
94

10-
exports[`it parses dependency names with multiple slashes correctly 1`] = `
11-
Object {
12-
"dependency": "redux-form",
13-
"path": "redux-form/immutable/koekjes",
14-
}
15-
`;
5+
exports[`it parses dependency names with multiple slashes correctly 1`] = `"Could not find dependency: 'redux-form'"`;
166

17-
exports[`it parses dependency names with slashes correctly 1`] = `
18-
Object {
19-
"dependency": "redux-form",
20-
"path": "redux-form/immutable",
21-
}
22-
`;
7+
exports[`it parses dependency names with slashes correctly 1`] = `"Could not find dependency: 'redux-form'"`;
238

24-
exports[`it parses scoped packages 1`] = `
25-
Object {
26-
"dependency": "@vx/group",
27-
"path": "@vx/group",
28-
}
29-
`;
9+
exports[`it parses scoped packages 1`] = `"Could not find dependency: '@vx/group'"`;

src/sandbox/errors/dependency-not-found-error.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ import DependencyError from './dependency-not-found-error';
33
test('it handles normal deps correctly', () => {
44
const error = new DependencyError('redux-form');
55

6-
expect(error.payload).toMatchSnapshot();
6+
expect(error.message).toMatchSnapshot();
77
});
88

99
test('it parses dependency names with slashes correctly', () => {
1010
const error = new DependencyError('redux-form/immutable');
1111

12-
expect(error.payload).toMatchSnapshot();
12+
expect(error.message).toMatchSnapshot();
1313
});
1414

1515
test('it parses dependency names with multiple slashes correctly', () => {
1616
const error = new DependencyError('redux-form/immutable/koekjes');
1717

18-
expect(error.payload).toMatchSnapshot();
18+
expect(error.message).toMatchSnapshot();
1919
});
2020

2121
test('it parses scoped packages', () => {
2222
const error = new DependencyError('@vx/group');
2323

24-
expect(error.payload).toMatchSnapshot();
24+
expect(error.message).toMatchSnapshot();
2525
});

0 commit comments

Comments
 (0)