Skip to content

Commit

Permalink
removed from schematics
Browse files Browse the repository at this point in the history
  • Loading branch information
david-shortman committed May 18, 2021
1 parent 78ba984 commit eb659a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/store-devtools/schematics/ng-add/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('Store-Devtools ng-add Schematic', () => {
/import { StoreDevtoolsModule } from '@ngrx\/store-devtools';/
);
expect(content).toMatch(
/StoreDevtoolsModule.instrument\({ maxAge: 25, autoPause: false, logOnly: environment.production }\)/
/StoreDevtoolsModule.instrument\({ maxAge: 25, logOnly: environment.production }\)/
);
});

Expand Down
4 changes: 1 addition & 3 deletions modules/store-devtools/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ function addImportToNgModule(options: StoreDevtoolsOptions): Rule {
const [instrumentNgModuleImport] = addImportToModule(
source,
modulePath,
`StoreDevtoolsModule.instrument({ maxAge: ${options.maxAge}, autoPause: ${
options.autoPause ?? false
}, logOnly: environment.production })`,
`StoreDevtoolsModule.instrument({ maxAge: ${options.maxAge}, logOnly: environment.production })`,
modulePath
);

Expand Down

0 comments on commit eb659a3

Please sign in to comment.