feat: added queue slider & input field
This commit is contained in:
parent
65a2dab9af
commit
ac7ef89b01
637 changed files with 101735 additions and 12 deletions
29
node_modules/zod/src/v3/tests/object-in-es5-env.test.ts
generated
vendored
Normal file
29
node_modules/zod/src/v3/tests/object-in-es5-env.test.ts
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
// @ts-ignore TS6133
|
||||
import { expect, test } from "vitest";
|
||||
|
||||
import * as z from "zod/v3";
|
||||
|
||||
const RealSet = Set;
|
||||
const RealMap = Map;
|
||||
const RealDate = Date;
|
||||
|
||||
test("doesn’t throw when Date is undefined", () => {
|
||||
delete (globalThis as any).Date;
|
||||
const result = z.object({}).safeParse({});
|
||||
expect(result.success).toEqual(true);
|
||||
globalThis.Date = RealDate;
|
||||
});
|
||||
|
||||
test("doesn’t throw when Set is undefined", () => {
|
||||
delete (globalThis as any).Set;
|
||||
const result = z.object({}).safeParse({});
|
||||
expect(result.success).toEqual(true);
|
||||
globalThis.Set = RealSet;
|
||||
});
|
||||
|
||||
test("doesn’t throw when Map is undefined", () => {
|
||||
delete (globalThis as any).Map;
|
||||
const result = z.object({}).safeParse({});
|
||||
expect(result.success).toEqual(true);
|
||||
globalThis.Map = RealMap;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue