@@ -47,17 +47,17 @@ describe('Data ng-add Schematic', () => {
47
47
} ) ;
48
48
49
49
it ( 'should import into a specified module' , async ( ) => {
50
- const options = { ...defaultOptions , module : 'app. module.ts' } ;
50
+ const options = { ...defaultOptions , module : 'app- module.ts' } ;
51
51
52
52
const tree = await schematicRunner . runSchematic ( 'ng-add' , options , appTree ) ;
53
- const content = tree . readContent ( `${ projectPath } /src/app/app. module.ts` ) ;
53
+ const content = tree . readContent ( `${ projectPath } /src/app/app- module.ts` ) ;
54
54
expect ( content ) . toMatch ( / i m p o r t { E n t i t y D a t a M o d u l e } f r o m ' @ n g r x \/ d a t a ' / ) ;
55
55
} ) ;
56
56
57
57
it ( 'should fail if specified module does not exist' , async ( ) => {
58
58
const options = {
59
59
...defaultOptions ,
60
- module : `${ projectPath } /src/app/app. moduleXXX.ts` ,
60
+ module : `${ projectPath } /src/app/app- moduleXXX.ts` ,
61
61
} ;
62
62
let thrownError : Error | null = null ;
63
63
try {
@@ -72,7 +72,7 @@ describe('Data ng-add Schematic', () => {
72
72
const options = { ...defaultOptions , effects : false , entityConfig : true } ;
73
73
74
74
const tree = await schematicRunner . runSchematic ( 'ng-add' , options , appTree ) ;
75
- const content = tree . readContent ( `${ projectPath } /src/app/app. module.ts` ) ;
75
+ const content = tree . readContent ( `${ projectPath } /src/app/app- module.ts` ) ;
76
76
expect ( content ) . toMatch (
77
77
/ i m p o r t { e n t i t y C o n f i g } f r o m ' .\/ e n t i t y - m e t a d a t a ' /
78
78
) ;
@@ -94,7 +94,7 @@ describe('Data ng-add Schematic', () => {
94
94
const options = { ...defaultOptions , entityConfig : true } ;
95
95
96
96
const tree = await schematicRunner . runSchematic ( 'ng-add' , options , appTree ) ;
97
- const content = tree . readContent ( `${ projectPath } /src/app/app. module.ts` ) ;
97
+ const content = tree . readContent ( `${ projectPath } /src/app/app- module.ts` ) ;
98
98
expect ( content ) . toMatch (
99
99
/ i m p o r t { e n t i t y C o n f i g } f r o m ' .\/ e n t i t y - m e t a d a t a ' /
100
100
) ;
@@ -104,13 +104,13 @@ describe('Data ng-add Schematic', () => {
104
104
it ( 'should import EntityDataModuleWithoutEffects into a specified module' , async ( ) => {
105
105
const options = {
106
106
...defaultOptions ,
107
- module : 'app. module.ts' ,
107
+ module : 'app- module.ts' ,
108
108
effects : false ,
109
109
entityConfig : false ,
110
110
} ;
111
111
112
112
const tree = await schematicRunner . runSchematic ( 'ng-add' , options , appTree ) ;
113
- const content = tree . readContent ( `${ projectPath } /src/app/app. module.ts` ) ;
113
+ const content = tree . readContent ( `${ projectPath } /src/app/app- module.ts` ) ;
114
114
expect ( content ) . toMatch (
115
115
/ i m p o r t { E n t i t y D a t a M o d u l e W i t h o u t E f f e c t s } f r o m ' @ n g r x \/ d a t a ' /
116
116
) ;
@@ -120,15 +120,15 @@ describe('Data ng-add Schematic', () => {
120
120
const options = { ...defaultOptions , entityConfig : false } ;
121
121
122
122
const tree = await schematicRunner . runSchematic ( 'ng-add' , options , appTree ) ;
123
- const content = tree . readContent ( `${ projectPath } /src/app/app. module.ts` ) ;
123
+ const content = tree . readContent ( `${ projectPath } /src/app/app- module.ts` ) ;
124
124
expect ( content ) . toMatch ( / E n t i t y D a t a M o d u l e / ) ;
125
125
} ) ;
126
126
127
127
it ( 'should register EntityDataModuleWithoutEffects in the provided module' , async ( ) => {
128
128
const options = { ...defaultOptions , effects : false , entityConfig : false } ;
129
129
130
130
const tree = await schematicRunner . runSchematic ( 'ng-add' , options , appTree ) ;
131
- const content = tree . readContent ( `${ projectPath } /src/app/app. module.ts` ) ;
131
+ const content = tree . readContent ( `${ projectPath } /src/app/app- module.ts` ) ;
132
132
expect ( content ) . toMatch ( / E n t i t y D a t a M o d u l e W i t h o u t E f f e c t s / ) ;
133
133
} ) ;
134
134
0 commit comments