This repository was archived by the owner on Jul 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
app/nodejs-v10/src/test/scala/io/scalajs/nodejs Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,12 @@ object TestEnvironment {
9
9
10
10
def isWindows : Boolean = os.OS .platform().startsWith(" win" )
11
11
12
+ def isExecutedInExactNode14 : Boolean = nodeMajorVersion == 14
12
13
def isExecutedInExactNode12 : Boolean = nodeMajorVersion == 12
13
14
def isExecutedInExactNode10 : Boolean = nodeMajorVersion == 10
14
15
def isExecutedInExactNode8 : Boolean = nodeMajorVersion == 8
15
16
17
+ def isExecutedInNode14OrNewer : Boolean = nodeMajorVersion >= 14
16
18
def isExecutedInNode12OrNewer : Boolean = nodeMajorVersion >= 12
17
19
def isExecutedInNode10OrNewer : Boolean = nodeMajorVersion >= 10
18
20
}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class ProcessTest extends AnyFunSpec {
10
10
if (TestEnvironment .isExecutedInExactNode8) " v8."
11
11
else if (TestEnvironment .isExecutedInExactNode10) " v10."
12
12
else if (TestEnvironment .isExecutedInExactNode12) " v12."
13
+ else if (TestEnvironment .isExecutedInExactNode14) " v14."
13
14
else " Unknown node.js version"
14
15
15
16
it(" contains the following properties" ) {
You can’t perform that action at this time.
0 commit comments