diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index d32999c084..fe979b7ce2 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