summaryrefslogtreecommitdiff
path: root/std/testing/asserts_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/testing/asserts_test.ts')
-rw-r--r--std/testing/asserts_test.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts
index 5537b41e7..854cb9730 100644
--- a/std/testing/asserts_test.ts
+++ b/std/testing/asserts_test.ts
@@ -412,6 +412,17 @@ Deno.test({
},
});
+Deno.test({
+ name: "assert* functions with specified type paratemeter",
+ fn(): void {
+ assertEquals<string>("hello", "hello");
+ assertNotEquals<number>(1, 2);
+ assertArrayContains<boolean>([true, false], [true]);
+ const value = { x: 1 };
+ assertStrictEquals<typeof value>(value, value);
+ },
+});
+
Deno.test("Assert Throws Non-Error Fail", () => {
assertThrows(
() => {