Skip to content

Commit

Permalink
fix(crud): collection name
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk-zielinski93 committed Jul 16, 2019
1 parent f1b9a7b commit aba8293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collection/reducer/rules/update-reducer-spec.rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function createTestUpdateSuccess(
)
.join('\n');
expects += `\nexpect(statesEqual(result, state, [${statePropertiesStringList}])).toBeTruthy()`;
const prop = toPropertyName(actionName.slice(6, -7) + 's');
const prop = toPropertyName(actionName.slice(6, -7) + 'Collection');
return `
describe('${actionName}', () => {
it('should set ${statePropertiesList} and do not modify other state properties', () => {
Expand Down Expand Up @@ -128,7 +128,7 @@ function createTestRemoveSuccess(
)
.join('\n');
expects += `\nexpect(statesEqual(result, state, [${statePropertiesStringList}])).toBeTruthy()`;
const prop = toPropertyName(actionName.slice(6, -7) + 's');
const prop = toPropertyName(actionName.slice(6, -7) + 'Collection');
return `
describe('${actionName}', () => {
it('should set ${statePropertiesList} and do not modify other state properties', () => {
Expand Down

0 comments on commit aba8293

Please sign in to comment.