Skip to content

Commit 6a9ebbd

Browse files
Align differential.test.js with #2457
1 parent cb98045 commit 6a9ebbd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/unit/win/differential.test.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @overview Contains differential tests for the migration form standard regular
3-
* expressions to linear-time regular expressions in PoewrShell.
2+
* @overview Contains (additional) unit tests for the escaping functionality for
3+
* PowerShell.
44
* @license MIT
55
*/
66

@@ -33,8 +33,11 @@ testProp(
3333
const updFn = upd.getQuoteFunction();
3434
const oldFn = old.getQuoteFunction();
3535

36-
const got = updFn[0](updFn[1](arg));
37-
const want = oldFn[0](oldFn[1](arg));
36+
const [updEscape, updQuote] = updFn;
37+
const [oldEscape, oldQuote] = oldFn;
38+
39+
const got = updQuote(updEscape(arg));
40+
const want = oldQuote(oldEscape(arg));
3841
t.is(got, want);
3942
},
4043
{ numRuns },

0 commit comments

Comments
 (0)