From 9a193affbfc85eb5f7ac4666643817beb725f9d8 Mon Sep 17 00:00:00 2001 From: Ryan Chernoff Date: Thu, 1 May 2025 15:08:14 -0400 Subject: [PATCH] Fixed error where test for XOR operation with valid key had an invalid key --- tests/node/tests/operations.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/node/tests/operations.mjs b/tests/node/tests/operations.mjs index e46d426f..1bf4b92b 100644 --- a/tests/node/tests/operations.mjs +++ b/tests/node/tests/operations.mjs @@ -979,7 +979,7 @@ smothering ampersand abreast`; { string: "zz 00 11", option: "Hex" }, { string: "4~ 00 11", option: "Hex" } - ]; + ]; invalidKeys.forEach(invalidKey => { assert.throws(() => { chef.XOR("fe023da5", { key: invalidKey, filterKey: false }); @@ -989,7 +989,7 @@ smothering ampersand abreast`; it("XOR: should not throw 'Invalid Characters in key' error when key contains only valid characters", () => { assert.strictEqual(chef.XOR("fe023da5", { - key: "73 6f 6d 65", + key: "736f6d65", filterKey: false }).toString(), "\u0015\n]W@\u000b\fP");