Skip to content

Commit

Permalink
fix: ci doesnt run on <10 so we can remove this test
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Feb 6, 2024
1 parent cc3eb75 commit 3b2726c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/regex-features.js
Expand Up @@ -23,13 +23,6 @@ describe('regex features', () => {
assert(!isMatch('foo/cbaz', 'foo/*(?<=d)baz'));
assert(isMatch('foo/cbaz', 'foo/*(?<=c)baz'));
});

it('should throw an error when regex lookbehinds are used on an unsupported node version', () => {
const nodeMajor = process.versions.node.split('.')[0];
if (nodeMajor < 10) {
assert.throws(() => isMatch('foo/cbaz', 'foo/*(?<!c)baz'), /Node\.js v10 or higher/);
}
});
});

describe('regex back-references', () => {
Expand Down

0 comments on commit 3b2726c

Please sign in to comment.