mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 20:24:47 +00:00
fix: Fix the wrapper data types
This commit is contained in:
@@ -619,7 +619,7 @@ describe("Builder List", () => {
|
||||
)
|
||||
const validator = value.validator
|
||||
validator.unsafeCast(["test", "text"])
|
||||
expect(() => validator.unsafeCast([3,4])).toThrowError()
|
||||
expect(() => validator.unsafeCast([3, 4])).toThrowError()
|
||||
expect(() => validator.unsafeCast(null)).toThrowError()
|
||||
testOutput<typeof validator._TYPE, string[]>()(null)
|
||||
expect(await value.build({} as any)).toMatchObject({
|
||||
@@ -636,9 +636,8 @@ describe("Builder List", () => {
|
||||
})),
|
||||
)
|
||||
const validator = value.validator
|
||||
expect(() =>
|
||||
validator.unsafeCast(["test", "text"])).toThrowError()
|
||||
validator.unsafeCast([4,2])
|
||||
expect(() => validator.unsafeCast(["test", "text"])).toThrowError()
|
||||
validator.unsafeCast([4, 2])
|
||||
expect(() => validator.unsafeCast(null)).toThrowError()
|
||||
validator.unsafeCast([])
|
||||
testOutput<typeof validator._TYPE, number[]>()(null)
|
||||
@@ -648,7 +647,6 @@ describe("Builder List", () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe("Nested nullable values", () => {
|
||||
test("Testing text", async () => {
|
||||
|
||||
Reference in New Issue
Block a user