Better test coverage
This commit is contained in:
parent
e3ff47000a
commit
6b6ae83c81
@ -29,7 +29,7 @@ class EscapeSmartCharacters extends Operation {
|
||||
this.args = [
|
||||
/* Arguments. See the project wiki for full details.*/
|
||||
{
|
||||
name: "Second arg",
|
||||
name: "Output action",
|
||||
type: "option",
|
||||
value: ["Escape", "Remove", "Replace with '.'"]
|
||||
}
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user