@@ -4,7 +4,7 @@ const expect = require('expect');
44it ( 'Formats module-not-found errors' , ( ) => {
55 const error = { type : 'module-not-found' , module : 'redux' } ;
66 expect ( moduleNotFound ( [ error ] ) ) . toEqual ( [
7- 'This module was not found:' ,
7+ 'This dependency was not found:' ,
88 '' ,
99 '* redux' ,
1010 '' ,
@@ -16,7 +16,7 @@ it('Groups all module-not-found into one', () => {
1616 const reduxError = { type : 'module-not-found' , module : 'redux' } ;
1717 const reactError = { type : 'module-not-found' , module : 'react' } ;
1818 expect ( moduleNotFound ( [ reduxError , reactError ] ) ) . toEqual ( [
19- 'These modules were not found:' ,
19+ 'These dependencies were not found:' ,
2020 '' ,
2121 '* redux' ,
2222 '* react' ,
@@ -28,12 +28,12 @@ it('Groups all module-not-found into one', () => {
2828it ( 'Groups same module in module-not-found with 2 files' , ( ) => {
2929 const reduxError = { type : 'module-not-found' , module : 'redux' } ;
3030 const reactError1 = { type : 'module-not-found' , module : 'react' , file : './src/file1.js' } ;
31- const reactError2 = { type : 'module-not-found' , module : 'react' , file : './src/file2.js' } ;
31+ const reactError2 = { type : 'module-not-found' , module : 'react' , file : '.. /src/file2.js' } ;
3232 expect ( moduleNotFound ( [ reduxError , reactError1 , reactError2 ] ) ) . toEqual ( [
33- 'These modules were not found:' ,
33+ 'These dependencies were not found:' ,
3434 '' ,
3535 '* redux' ,
36- '* react in ./src/file1.js, ./src/file2.js' ,
36+ '* react in ./src/file1.js, .. /src/file2.js' ,
3737 '' ,
3838 'To install them, you can run: npm install --save redux react'
3939 ] ) ;
@@ -45,7 +45,7 @@ it('Groups same module in module-not-found with 3 files', () => {
4545 const reactError2 = { type : 'module-not-found' , module : 'react' , file : './src/file2.js' } ;
4646 const reactError3 = { type : 'module-not-found' , module : 'react' , file : './src/file3.js' } ;
4747 expect ( moduleNotFound ( [ reduxError , reactError1 , reactError2 , reactError3 ] ) ) . toEqual ( [
48- 'These modules were not found:' ,
48+ 'These dependencies were not found:' ,
4949 '' ,
5050 '* redux' ,
5151 '* react in ./src/file1.js, ./src/file2.js and 1 other' ,
@@ -61,7 +61,7 @@ it('Groups same module in module-not-found with 4 files', () => {
6161 const reactError3 = { type : 'module-not-found' , module : 'react' , file : './src/file3.js' } ;
6262 const reactError4 = { type : 'module-not-found' , module : 'react' , file : './src/file4.js' } ;
6363 expect ( moduleNotFound ( [ reduxError , reactError1 , reactError2 , reactError3 , reactError4 ] ) ) . toEqual ( [
64- 'These modules were not found:' ,
64+ 'These dependencies were not found:' ,
6565 '' ,
6666 '* redux' ,
6767 '* react in ./src/file1.js, ./src/file2.js and 2 others' ,
0 commit comments