From 86f2d7a768c9a9c61a69bb73ca1d1e68a4688099 Mon Sep 17 00:00:00 2001 From: Antoine Cormouls Date: Sun, 8 May 2022 12:51:22 +0200 Subject: [PATCH] fix: it_only_node_version --- spec/helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/helper.js b/spec/helper.js index 39be89d880..f769c0f521 100644 --- a/spec/helper.js +++ b/spec/helper.js @@ -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 { @@ -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 {