Skip to content

Commit fca46f7

Browse files
committed
style: npm run prettier:fix
1 parent d002fdf commit fca46f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/functional/nested-validation.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ describe('nested validation', () => {
322322

323323
const model = new MyClass();
324324
model.nestedWithClassValue = new MySubClass();
325-
model.nestedWithPrimitiveValue = "invalid" as any;
325+
model.nestedWithPrimitiveValue = 'invalid' as any;
326326

327-
return validator.validate(model, {stopAtFirstError: true}).then(errors => {
327+
return validator.validate(model, { stopAtFirstError: true }).then(errors => {
328328
expect(errors[0].property).toEqual('nestedWithClassValue');
329329
expect(errors[0].children.length).toEqual(1);
330330
expect(errors[0].children[0].constraints).toHaveProperty('minLength');

test/functional/validation-options.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ describe('context', () => {
12191219
}
12201220

12211221
const model = new MyClass();
1222-
model.nestedWithPrimitiveValue = "invalid" as any;
1222+
model.nestedWithPrimitiveValue = 'invalid' as any;
12231223

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

12411241
return Promise.all([hasStopAtFirstError, hasNotStopAtFirstError]);
12421242
});

0 commit comments

Comments
 (0)