We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e6391 commit 3d2cf21Copy full SHA for 3d2cf21
assert_test.ts
@@ -29,6 +29,17 @@ Deno.test("assert", async (t) => {
29
);
30
});
31
32
+ await t.step(
33
+ "throws an `AssertError` on false predicate with an anonymous predicate",
34
+ () => {
35
+ assertThrows(
36
+ () => assert(x, (_x: unknown): _x is string => false),
37
+ AssertError,
38
+ `Expected a value that satisfies the predicate anonymous predicate, got symbol: undefined`,
39
+ );
40
+ },
41
42
+
43
await t.step(
44
"throws an `AssertError` on false predicate with a custom name",
45
() => {
0 commit comments