Skip to content

Commit

Permalink
fix custom node assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
flipatlas committed Dec 6, 2024
1 parent 9e87cb2 commit 0abce14
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.codehaus.plexus.util.FileUtils

// assert
assert !new File(basedir, 'node').exists() : "Node was installed in the custom install directory"
assert !new File(basedir, 'node/node').exists() : "Node was installed in the custom install directory"
assert new File(basedir, 'node_modules').exists() : "Node modules were not installed in the base directory"

String buildLog = FileUtils.fileRead(new File(basedir, 'build.log'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import org.codehaus.plexus.util.FileUtils
String buildLog = FileUtils.fileRead(new File(basedir, 'build.log'))
assert buildLog.contains('Using FNM version manager') : 'Node has been installed with a different version manager'

assert !new File(basedir, 'node').exists() : "Node was installed bypassing version manager"
assert !new File(basedir, 'node/node').exists() : "Node was installed bypassing version manager"
assert new File(basedir, 'node_modules').exists() : "Node modules were not installed in the base directory"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.codehaus.plexus.util.FileUtils

// assert
assert !new File(basedir, 'node').exists() : "Node was installed in the custom install directory"
assert !new File(basedir, 'node/node').exists() : "Node was installed in the custom install directory"
assert new File(basedir, 'node_modules').exists() : "Node modules were not installed in the base directory"

String buildLog = FileUtils.fileRead(new File(basedir, 'build.log'))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.codehaus.plexus.util.FileUtils

// assert
assert !new File(basedir, 'node').exists() : "Node was installed in the custom install directory"
assert !new File(basedir, 'node/node').exists() : "Node was installed in the custom install directory"
assert new File(basedir, 'node_modules').exists() : "Node modules were not installed in the base directory"

String buildLog = FileUtils.fileRead(new File(basedir, 'build.log'))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.codehaus.plexus.util.FileUtils

// assert
assert !new File(basedir, 'node').exists() : "Node was installed in the custom install directory"
assert !new File(basedir, 'node/node').exists() : "Node was installed in the custom install directory"
assert new File(basedir, 'node_modules').exists() : "Node modules were not installed in the base directory"

String buildLog = FileUtils.fileRead(new File(basedir, 'build.log'))
Expand Down

0 comments on commit 0abce14

Please sign in to comment.