File tree Expand file tree Collapse file tree 2 files changed +8
-28
lines changed
Expand file tree Collapse file tree 2 files changed +8
-28
lines changed Original file line number Diff line number Diff line change 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'"` ;
Original file line number Diff line number Diff line change @@ -3,23 +3,23 @@ import DependencyError from './dependency-not-found-error';
33test ( '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
99test ( '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
1515test ( '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
2121test ( 'it parses scoped packages' , ( ) => {
2222 const error = new DependencyError ( '@vx/group' ) ;
2323
24- expect ( error . payload ) . toMatchSnapshot ( ) ;
24+ expect ( error . message ) . toMatchSnapshot ( ) ;
2525} ) ;
You can’t perform that action at this time.
0 commit comments