Skip to content

Commit dc93c92

Browse files
committed
style: 💄 run formatter
1 parent 214c384 commit dc93c92

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/type/__tests__/validateTestSuite.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ export const validateTestSuite = (validate: (type: Type, value: unknown) => void
386386
});
387387

388388
test('object nested in array', () => {
389-
const type = t.obj
390-
.prop('foo', t.array(t.obj.prop('bar', t.str)))
389+
const type = t.obj.prop('foo', t.array(t.obj.prop('bar', t.str)));
391390
validate(type, {foo: [{bar: 'baz'}]});
392391
const validator = type.validator('object');
393392
const res = validator({foo: [{bar: 'baz'}]});
@@ -397,7 +396,7 @@ export const validateTestSuite = (validate: (type: Type, value: unknown) => void
397396
code: ValidationError[ValidationError.ARR],
398397
errno: ValidationError.ARR,
399398
message: ValidationErrorMessage[ValidationError.ARR],
400-
path: [ 'foo' ]
399+
path: ['foo'],
401400
});
402401
});
403402

0 commit comments

Comments
 (0)