We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
differential.test.js
1 parent cb98045 commit 6a9ebbdCopy full SHA for 6a9ebbd
test/unit/win/differential.test.js
@@ -1,6 +1,6 @@
1
/**
2
- * @overview Contains differential tests for the migration form standard regular
3
- * expressions to linear-time regular expressions in PoewrShell.
+ * @overview Contains (additional) unit tests for the escaping functionality for
+ * PowerShell.
4
* @license MIT
5
*/
6
@@ -33,8 +33,11 @@ testProp(
33
const updFn = upd.getQuoteFunction();
34
const oldFn = old.getQuoteFunction();
35
36
- const got = updFn[0](updFn[1](arg));
37
- const want = oldFn[0](oldFn[1](arg));
+ const [updEscape, updQuote] = updFn;
+ const [oldEscape, oldQuote] = oldFn;
38
+
39
+ const got = updQuote(updEscape(arg));
40
+ const want = oldQuote(oldEscape(arg));
41
t.is(got, want);
42
},
43
{ numRuns },
0 commit comments