From c21be13be42f6ca9ec368bd52eee4dc6129f156c Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 30 Sep 2023 02:50:38 -0700 Subject: tweak github actions (#6195) * Discord comments * better * better * actions --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- test/js/node/fs/cp.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/js/node/fs/cp.test.ts') diff --git a/test/js/node/fs/cp.test.ts b/test/js/node/fs/cp.test.ts index eae8a0e77..33b9aa700 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