mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
node: add test
Closes #26419. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
1 parent
fc9d11b0b4
commit
33f192755a
1 file changed
+9
@@ -95,4 +95,13 @@ class Node < Formula
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
path = testpath/"test.js"
|
||||
path.write "console.log('hello');"
|
||||
|
||||
output = `#{bin}/node #{path}`.strip
|
||||
assert_equal "hello", output
|
||||
assert_equal 0, $?.exitstatus
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user