node: add test

Closes #26419.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike Naberezny authored and Mike McQuaid committed 2014-02-05 11:41:36 +00:00
1 parent fc9d11b0b4
commit 33f192755a
1 file changed
+9
+9
View File
@@ -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