Skip to content

Commit d14875b

Browse files
committed
test: 💍 fixup test
1 parent 8807bf8 commit d14875b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/validator/__tests__/codegen.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ describe('custom validators', () => {
12801280
test('can specify multiple validators', () => {
12811281
const system = new TypeSystem();
12821282
const type = system.t.str
1283-
.validator((value) => value === 'a' || value === 'b', 'is-ab')
1283+
.validator((value) => value !== 'a' && value !== 'b', 'is-ab')
12841284
.validator((value) => value !== 'a', 'is-a');
12851285
const validator = ValidatorCodegen.get({type, errors: 'object'});
12861286
const res1 = validator('a');

0 commit comments

Comments
 (0)