diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-06-24 20:29:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 08:29:50 -0400 |
commit | f318ab01a47cecac9df62d11cb0c745f39523da9 (patch) | |
tree | 7d43102c3f5456d93c8f65fd21aa11fd71f89292 /std/testing/asserts.ts | |
parent | 1d8fc394945fb4447cec23fbfc61fc8961126b7a (diff) |
fix(std/testing) assertArrayContains should work with any array-like (#6402)
Diffstat (limited to 'std/testing/asserts.ts')
-rw-r--r-- | std/testing/asserts.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/testing/asserts.ts b/std/testing/asserts.ts index 50c45c6ca..ea15aa6bc 100644 --- a/std/testing/asserts.ts +++ b/std/testing/asserts.ts @@ -269,8 +269,8 @@ export function assertStringContains( * If not then thrown. */ export function assertArrayContains( - actual: unknown[], - expected: unknown[], + actual: ArrayLike<unknown>, + expected: ArrayLike<unknown>, msg?: string ): void { const missing: unknown[] = []; |