diff options
Diffstat (limited to 'std/testing/asserts_test.ts')
-rw-r--r-- | std/testing/asserts_test.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts index 8b79ddf8a..35ce50031 100644 --- a/std/testing/asserts_test.ts +++ b/std/testing/asserts_test.ts @@ -159,6 +159,10 @@ Deno.test("testingArrayContains", function (): void { const fixtureObject = [{ deno: "luv" }, { deno: "Js" }]; assertArrayContains(fixture, ["deno"]); assertArrayContains(fixtureObject, [{ deno: "luv" }]); + assertArrayContains( + Uint8Array.from([1, 2, 3, 4]), + Uint8Array.from([1, 2, 3]) + ); assertThrows( (): void => assertArrayContains(fixtureObject, [{ deno: "node" }]), AssertionError, |