Better test coverage

This commit is contained in:
John L 2021-12-20 10:12:56 +00:00
parent e3ff47000a
commit 6b6ae83c81
2 changed files with 23 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class EscapeSmartCharacters extends Operation {
this.args = [ this.args = [
/* Arguments. See the project wiki for full details.*/ /* Arguments. See the project wiki for full details.*/
{ {
name: "Second arg", name: "Output action",
type: "option", type: "option",
value: ["Escape", "Remove", "Replace with '.'"] value: ["Escape", "Remove", "Replace with '.'"]
} }

View file

@ -18,5 +18,26 @@
}, },
], ],
}, },
{
name: "Escape Smart Characters - Remove",
input: "“”—‘’ →©…",
expectedOutput: " ",
recipeConfig: [
{
op: "Escape Smart Characters",
args: ["Remove"],
},
],
},
{
name: "Escape Smart Characters - Replace",
input: "“”—‘’ →©…",
expectedOutput: "..... ...",
recipeConfig: [
{
op: "Escape Smart Characters",
args: ["Replace with '.'"],
},
],
},
]); ]);
g