Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 35291a6

Browse files
committed
Fix tests
1 parent 351fb97 commit 35291a6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/nodejs-v10/src/test/scala/io/scalajs/nodejs/TestEnvironment.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ object TestEnvironment {
99

1010
def isWindows: Boolean = os.OS.platform().startsWith("win")
1111

12+
def isExecutedInExactNode14: Boolean = nodeMajorVersion == 14
1213
def isExecutedInExactNode12: Boolean = nodeMajorVersion == 12
1314
def isExecutedInExactNode10: Boolean = nodeMajorVersion == 10
1415
def isExecutedInExactNode8: Boolean = nodeMajorVersion == 8
1516

17+
def isExecutedInNode14OrNewer: Boolean = nodeMajorVersion >= 14
1618
def isExecutedInNode12OrNewer: Boolean = nodeMajorVersion >= 12
1719
def isExecutedInNode10OrNewer: Boolean = nodeMajorVersion >= 10
1820
}

app/nodejs-v10/src/test/scala/io/scalajs/nodejs/process/ProcessTest.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class ProcessTest extends AnyFunSpec {
1010
if (TestEnvironment.isExecutedInExactNode8) "v8."
1111
else if (TestEnvironment.isExecutedInExactNode10) "v10."
1212
else if (TestEnvironment.isExecutedInExactNode12) "v12."
13+
else if (TestEnvironment.isExecutedInExactNode14) "v14."
1314
else "Unknown node.js version"
1415

1516
it("contains the following properties") {

0 commit comments

Comments
 (0)