From 71d1662ea9ea90c72c0b82cf2c8cc6f4e17de072 Mon Sep 17 00:00:00 2001 From: Steven Levithan Date: Tue, 1 Oct 2024 12:00:55 +0200 Subject: [PATCH] Fix tests for pre Node 20 --- spec/interpolate-string.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/interpolate-string.spec.js b/spec/interpolate-string.spec.js index 97319d0..2e14837 100644 --- a/spec/interpolate-string.spec.js +++ b/spec/interpolate-string.spec.js @@ -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}]$`); }