Skip to content

Commit

Permalink
Fix tests for pre Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Oct 1, 2024
1 parent 6e183ff commit 71d1662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/interpolate-string.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('interpolation: escaped strings', () => {

describe('in character class context', () => {
it('should coerce non-string/number/regex/pattern values', () => {
expect('u').toMatch(regex`^[${undefined}]$`);
if (flagVSupported) {
expect('u').toMatch(regex`^[${undefined}]$`);
expect('a').toMatch(regex`^[[a-z]--${null}]$`);
expect('n').not.toMatch(regex`^[[a-z]--${null}]$`);
}
Expand Down

0 comments on commit 71d1662

Please sign in to comment.