aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/node.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index d32999c08..fe979b7ce 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -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