Skip to content

Commit

Permalink
Fix deno test
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McDonnell committed Nov 15, 2022
1 parent 2bd6c08 commit c39d174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deno/lib/__tests__/discriminatedUnions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ test("wrong schema - missing discriminator", () => {
]);
throw new Error();
} catch (e: any) {
expect(e.message).toContain("could not be extracted");
expect(e.message.includes("could not be extracted")).toBe(true);
}
});

Expand All @@ -141,7 +141,7 @@ test("wrong schema - duplicate discriminator values", () => {
]);
throw new Error();
} catch (e: any) {
expect(e.message).toContain("has duplicate value");
expect(e.message.includes("has duplicate value")).toEqual(true);
}
});

Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/discriminatedUnions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ test("wrong schema - missing discriminator", () => {
]);
throw new Error();
} catch (e: any) {
expect(e.message).toContain("could not be extracted");
expect(e.message.includes("could not be extracted")).toBe(true);
}
});

Expand All @@ -140,7 +140,7 @@ test("wrong schema - duplicate discriminator values", () => {
]);
throw new Error();
} catch (e: any) {
expect(e.message).toContain("has duplicate value");
expect(e.message.includes("has duplicate value")).toEqual(true);
}
});

Expand Down

0 comments on commit c39d174

Please sign in to comment.