Skip to content

Commit

Permalink
Tests: Remove /v for older envs
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Jul 19, 2024
1 parent 2d18fd8 commit a8fbda5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/flag-x-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ describe('flag x', () => {
}

it('should handle empty character classes with insignificant whitespace', () => {
expect(/[]/v.test('a')).toBe(regex`[ ]`.test('a'));
expect(/[^]/v.test('a')).toBe(regex`[^ ]`.test('a'));
expect(/[]/.test('a')).toBe(regex`[ ]`.test('a'));
expect(/[^]/.test('a')).toBe(regex`[^ ]`.test('a'));
if (flagVSupported) {
expect(/[\q{}]/v.test('a')).toBe(regex`[ \q{ } ]`.test('a'));
}
Expand Down

0 comments on commit a8fbda5

Please sign in to comment.