added test to check that the error isn't raised on valid keys with filter set to false

This commit is contained in:
Jonas 2025-04-30 22:33:33 -04:00
parent 765d5ee97b
commit 70be54e262

View file

@ -987,6 +987,14 @@ 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",
filterKey: false
}).toString(),
"\u0015\n]W@\u000b\fP");
}),
it("XPath expression", () => {
assert.strictEqual(
chef.XPathExpression("<contact-info><company>abc</company></contact-info>", {xPath: "contact-info/company"}).toString(),