Skip to content

Commit

Permalink
style: npm run prettier:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ytetsuro committed Aug 23, 2020
1 parent e0f556b commit 240d739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/functional/nested-validation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ describe('nested validation', () => {

const model = new MyClass();
model.nestedWithClassValue = new MySubClass();
model.nestedWithPrimitiveValue = "invalid" as any;
model.nestedWithPrimitiveValue = 'invalid' as any;

return validator.validate(model, {stopAtFirstError: true}).then(errors => {
return validator.validate(model, { stopAtFirstError: true }).then(errors => {
expect(errors[0].property).toEqual('nestedWithClassValue');
expect(errors[0].children.length).toEqual(1);
expect(errors[0].children[0].constraints).toHaveProperty('minLength');
Expand Down
4 changes: 2 additions & 2 deletions test/functional/validation-options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ describe('context', () => {
}

const model = new MyClass();
model.nestedWithPrimitiveValue = "invalid" as any;
model.nestedWithPrimitiveValue = 'invalid' as any;

const hasStopAtFirstError = validator.validate(model, { stopAtFirstError: true }).then(errors => {
expect(errors.length).toEqual(2);
Expand All @@ -1236,7 +1236,7 @@ describe('context', () => {
expect(Object.keys(errors[1].constraints).length).toBe(2);
expect(errors[1].constraints).toHaveProperty('isArray');
expect(errors[1].constraints).toHaveProperty('nestedValidation');
})
});

return Promise.all([hasStopAtFirstError, hasNotStopAtFirstError]);
});
Expand Down

0 comments on commit 240d739

Please sign in to comment.