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', () => {
101101 const content = tree . readContent ( `${ projectPath } /src/app/app.config.ts` ) ;
102102 const files = tree . files ;
103103
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 (
106106 / i m p o r t { s t o r e } f r o m ' \. \/ s t o r e ' ; /
107107 ) ;
108- expect ( files . indexOf ( `${ projectPath } /src/app/store/index.ts` ) ) . toBe (
108+ expect ( files . indexOf ( `${ projectPath } /src/app/store/index.ts` ) ) . not . toBe (
109109 - 1
110110 ) ;
111111 } ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function addImportToNgModule(options: AngularReduxOptions): Rule {
9494 } ;
9595}
9696
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 {
9898 version : string ;
9999 peerDependencies : {
100100 [ key : string ] : string ;
You can’t perform that action at this time.
0 commit comments