File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
projects/angular-redux/schematics/ng-add Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ describe('Store ng-add Schematic', () => {
101
101
const content = tree . readContent ( `${ projectPath } /src/app/app.config.ts` ) ;
102
102
const files = tree . files ;
103
103
104
- expect ( content ) . toMatch ( / p r o v i d e S t o r e \( \) / ) ;
105
- expect ( content ) . not . toMatch (
104
+ expect ( content ) . toMatch ( / p r o v i d e R e d u x \( \{ s t o r e \} \) / ) ;
105
+ expect ( content ) . toMatch (
106
106
/ i m p o r t { s t o r e } f r o m ' \. \/ s t o r e ' ; /
107
107
) ;
108
- expect ( files . indexOf ( `${ projectPath } /src/app/store/index.ts` ) ) . toBe (
108
+ expect ( files . indexOf ( `${ projectPath } /src/app/store/index.ts` ) ) . not . toBe (
109
109
- 1
110
110
) ;
111
111
} ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function addImportToNgModule(options: AngularReduxOptions): Rule {
94
94
} ;
95
95
}
96
96
97
- const angularReduxPackageMeta = fs . readFileSync ( path . resolve ( __dirname , '../../package.json' ) ) as unknown as {
97
+ const angularReduxPackageMeta = JSON . parse ( fs . readFileSync ( path . resolve ( __dirname , '../../package.json' ) , "utf8" ) ) as unknown as {
98
98
version : string ;
99
99
peerDependencies : {
100
100
[ key : string ] : string ;
You can’t perform that action at this time.
0 commit comments