From 54d25b8f6b0f30b07146162a15d5f500fd45b2ee Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 30 Sep 2023 17:09:27 -0700 Subject: Update cp.test.ts --- test/js/node/fs/cp.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/js/node') 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; -- cgit v1.2.3