Skip to content

Commit 3e94c54

Browse files
committed
update jet-validators to latest version
1 parent 6c386a8 commit 3e94c54

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

Diff for: cases/jet-validators.ts

+8-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { isString, isNumber, isBoolean } from 'jet-validators';
22

33
import {
44
parseObject,
5-
testObject,
65
looseTestObject,
76
strictParseObject,
87
strictTestObject,
@@ -19,11 +18,11 @@ const safeParse = parseObject({
1918
string: isString,
2019
longString: isString,
2120
boolean: isBoolean,
22-
deeplyNested: testObject({
21+
deeplyNested: {
2322
foo: isString,
2423
num: isNumber,
2524
bool: isBoolean,
26-
}),
25+
},
2726
});
2827

2928
const looseTest = looseTestObject({
@@ -33,11 +32,11 @@ const looseTest = looseTestObject({
3332
string: isString,
3433
longString: isString,
3534
boolean: isBoolean,
36-
deeplyNested: looseTestObject({
35+
deeplyNested: {
3736
foo: isString,
3837
num: isNumber,
3938
bool: isBoolean,
40-
}),
39+
},
4140
});
4241

4342
const strictParse = strictParseObject({
@@ -47,11 +46,11 @@ const strictParse = strictParseObject({
4746
string: isString,
4847
longString: isString,
4948
boolean: isBoolean,
50-
deeplyNested: strictTestObject({
49+
deeplyNested: {
5150
foo: isString,
5251
num: isNumber,
5352
bool: isBoolean,
54-
}),
53+
},
5554
});
5655

5756
const strictTest = strictTestObject({
@@ -61,11 +60,11 @@ const strictTest = strictTestObject({
6160
string: isString,
6261
longString: isString,
6362
boolean: isBoolean,
64-
deeplyNested: strictTestObject({
63+
deeplyNested: {
6564
foo: isString,
6665
num: isNumber,
6766
bool: isBoolean,
68-
}),
67+
},
6968
});
7069

7170
const checkFailed = (arg: unknown) => {

0 commit comments

Comments
 (0)