Skip to content

Commit

Permalink
changes for reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshyadavdev committed Mar 3, 2019
1 parent 46c246b commit dbde8bc
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion modules/effects/schematics-core/utility/ngrx-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function addReducerToActionReducerMap(
let node = actionReducerMap.initializer;

const keyInsert =
stringUtils.camelize(options.name) +
stringUtils.pluralize(options.name) +
': from' +
stringUtils.classify(options.name) +
'.reducer,';
Expand Down
2 changes: 1 addition & 1 deletion modules/entity/schematics-core/utility/ngrx-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function addReducerToActionReducerMap(
let node = actionReducerMap.initializer;

const keyInsert =
stringUtils.camelize(options.name) +
stringUtils.pluralize(options.name) +
': from' +
stringUtils.classify(options.name) +
'.reducer,';
Expand Down
2 changes: 1 addition & 1 deletion modules/router-store/schematics-core/utility/ngrx-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function addReducerToActionReducerMap(
let node = actionReducerMap.initializer;

const keyInsert =
stringUtils.camelize(options.name) +
stringUtils.pluralize(options.name) +
': from' +
stringUtils.classify(options.name) +
'.reducer,';
Expand Down
2 changes: 1 addition & 1 deletion modules/schematics-core/utility/ngrx-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function addReducerToActionReducerMap(
let node = actionReducerMap.initializer;

const keyInsert =
stringUtils.camelize(options.name) +
stringUtils.pluralize(options.name) +
': from' +
stringUtils.classify(options.name) +
'.reducer,';
Expand Down
2 changes: 1 addition & 1 deletion modules/schematics/schematics-core/utility/ngrx-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function addReducerToActionReducerMap(
let node = actionReducerMap.initializer;

const keyInsert =
stringUtils.camelize(options.name) +
stringUtils.pluralize(options.name) +
': from' +
stringUtils.classify(options.name) +
'.reducer,';
Expand Down
2 changes: 1 addition & 1 deletion modules/schematics/src/reducer/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('Reducer Schematic', () => {
`${projectPath}/src/app/reducers/index.ts`
);

expect(reducers).toMatch(/foo\: fromFoo.reducer/);
expect(reducers).toMatch(/foos\: fromFoo.reducer/);
});

it('should group within a "reducers" folder if group is set', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function addReducerToActionReducerMap(
let node = actionReducerMap.initializer;

const keyInsert =
stringUtils.camelize(options.name) +
stringUtils.pluralize(options.name) +
': from' +
stringUtils.classify(options.name) +
'.reducer,';
Expand Down
2 changes: 1 addition & 1 deletion modules/store/schematics-core/utility/ngrx-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function addReducerToActionReducerMap(
let node = actionReducerMap.initializer;

const keyInsert =
stringUtils.camelize(options.name) +
stringUtils.pluralize(options.name) +
': from' +
stringUtils.classify(options.name) +
'.reducer,';
Expand Down

0 comments on commit dbde8bc

Please sign in to comment.