Skip to content

Commit

Permalink
adjust existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jul 25, 2021
1 parent e756173 commit 29ca950
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/node-unit/cli/node-flags.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ describe('node-flags', function() {
it('should return true for flags starting with "preserve-symlinks"', function() {
expect(isNodeFlag('preserve-symlinks'), 'to be true');
expect(isNodeFlag('preserve-symlinks-main'), 'to be true');
// Node >= v12 both flags exist in process.allowedNodeEnvironmentFlags
const nodeVersion = parseInt(process.version.match(/^v(\d+)\./)[1], 10);
expect(
isNodeFlag('preserve_symlinks'),
nodeVersion >= 12 ? 'to be true' : 'to be false'
);
expect(isNodeFlag('preserve_symlinks'), 'to be true');
});

it('should return true for flags starting with "harmony-" or "harmony_"', function() {
Expand All @@ -69,7 +64,6 @@ describe('node-flags', function() {
it('should return true for "gc-global"', function() {
expect(isNodeFlag('gc-global'), 'to be true');
expect(isNodeFlag('gc_global'), 'to be true');
expect(isNodeFlag('gc'), 'to be true');
});

it('should return true for "es-staging"', function() {
Expand Down

0 comments on commit 29ca950

Please sign in to comment.