diff options
author | 2023-09-30 17:09:27 -0700 | |
---|---|---|
committer | 2023-09-30 17:09:27 -0700 | |
commit | 54d25b8f6b0f30b07146162a15d5f500fd45b2ee (patch) | |
tree | d36ff6cee3fcb7db74434f637993026335bae897 | |
parent | 960922bba9cbc9bc5799b7cf0534ed5aa1ec275a (diff) | |
download | bun-54d25b8f6b0f30b07146162a15d5f500fd45b2ee.tar.gz bun-54d25b8f6b0f30b07146162a15d5f500fd45b2ee.tar.zst bun-54d25b8f6b0f30b07146162a15d5f500fd45b2ee.zip |
Update cp.test.ts
-rw-r--r-- | test/js/node/fs/cp.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/js/node/fs/cp.test.ts b/test/js/node/fs/cp.test.ts index 33b9aa700..eae8a0e77 100644 --- a/test/js/node/fs/cp.test.ts +++ b/test/js/node/fs/cp.test.ts @@ -12,7 +12,7 @@ for (const [name, copy] of impls) { try { await (copy as any)(...args); } catch (e: any) { - if ((e?.code? ?? "").toUpperCase() === "TODO") { + if (e?.code?.toUpperCase() === "TODO") { throw new Error("Expected " + name + "() to throw non TODO error"); } return e; |