issue#419

This commit is contained in:
John L 2021-12-17 12:48:51 +00:00
parent ae1b12c120
commit 46d40e961d
5 changed files with 171 additions and 1 deletions

View file

@ -107,6 +107,7 @@ import "./tests/CBORDecode.mjs";
import "./tests/JA3Fingerprint.mjs";
import "./tests/JA3SFingerprint.mjs";
import "./tests/HASSH.mjs";
import "./tests/EscapeSmartCharacters.mjs";
// Cannot test operations that use the File type yet

View file

@ -0,0 +1,22 @@
/**
* @author john19696 [john19696@protonmail.com]
* @copyright Crown Copyright 2021
* @license Apache-2.0
*/
import TestRegister from "../../lib/TestRegister.mjs";
TestRegister.addTests([
{
name: "Escape Smart Characters",
input: "“”—‘’ →©…",
expectedOutput: "\"\"--'' -->(C)...",
recipeConfig: [
{
op: "Escape Smart Characters",
args: ["Escape"],
},
],
},
]);
g