You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe("handles validation for oneOf",()=>{it("returns true when the data is valid",()=>{consttestSchema={oneOf: [{type: "string"},{type: "number"}],}asJSONSchema;constresult=validator(testSchema,"potato")asany;expect(result).toBe(true);});it("returns true when the data is null",()=>{consttestSchema={oneOf: [{type: "string"},{type: "null"}],}asJSONSchema;constresult=validator(testSchema,null)asany;expect(result).toBe(true);});});
Result
The text was updated successfully, but these errors were encountered:
some failing tests i wrote
src/index.test.ts
Result
The text was updated successfully, but these errors were encountered: