diff options
author | 2023-01-13 11:57:00 -0800 | |
---|---|---|
committer | 2023-01-13 11:57:22 -0800 | |
commit | cce380ec3752dc15720d0bcb8b06a718be6d3c44 (patch) | |
tree | b54c094636b40c75ad93a04dfbeda11b27b934e9 /test/bun.js/node-test-helpers.ts | |
parent | 828fd0cfea72c8fe49a22f4102e7fe3b1f807b47 (diff) | |
download | bun-cce380ec3752dc15720d0bcb8b06a718be6d3c44.tar.gz bun-cce380ec3752dc15720d0bcb8b06a718be6d3c44.tar.zst bun-cce380ec3752dc15720d0bcb8b06a718be6d3c44.zip |
Fix broken test helper
Diffstat (limited to '')
-rw-r--r-- | test/bun.js/node-test-helpers.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/bun.js/node-test-helpers.ts b/test/bun.js/node-test-helpers.ts index ff7b8ece3..fbad2a3bf 100644 --- a/test/bun.js/node-test-helpers.ts +++ b/test/bun.js/node-test-helpers.ts @@ -55,7 +55,12 @@ export const match = (...args: Parameters<typeof assertNode.match>) => { expect(true).toBe(true); }; -export const assert = { +export const assert = function (...args: any[]) { + // @ts-ignore + assertNode(...args); +}; + +Object.assign(assert, { strictEqual, deepStrictEqual, notStrictEqual, @@ -63,7 +68,7 @@ export const assert = { ok, ifError, match, -}; +}); // End assert |