mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-15 10:44:50 -04:00
added test to check that the error isn't raised on valid keys with filter set to false
This commit is contained in:
parent
765d5ee97b
commit
70be54e262
1 changed files with 8 additions and 0 deletions
|
@ -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", () => {
|
it("XPath expression", () => {
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
chef.XPathExpression("<contact-info><company>abc</company></contact-info>", {xPath: "contact-info/company"}).toString(),
|
chef.XPathExpression("<contact-info><company>abc</company></contact-info>", {xPath: "contact-info/company"}).toString(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue