Skip to content

Commit

Permalink
ci: fix Node version specific tests not running properly in local env…
Browse files Browse the repository at this point in the history
…ironment (#7984)
  • Loading branch information
Moumouls authored May 8, 2022
1 parent ad5e82f commit 330286d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ global.it_only_postgres_version = version => {
};

global.it_only_node_version = version => {
const envVersion = process.env.NODE_VERSION;
const envVersion = process.version;
if (!envVersion || semver.satisfies(envVersion, version)) {
return it;
} else {
Expand All @@ -480,7 +480,7 @@ global.fit_only_mongodb_version = version => {
};

global.fit_only_node_version = version => {
const envVersion = process.env.NODE_VERSION;
const envVersion = process.version;
if (!envVersion || semver.satisfies(envVersion, version)) {
return fit;
} else {
Expand Down

0 comments on commit 330286d

Please sign in to comment.