Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add test. Closes #4.

  • Loading branch information...
commit 10da79328d7c7d9447a60675a1bc075d48ec9931 1 parent a4dafd9
@kof authored
Showing with 6 additions and 0 deletions.
  1. +4 −0 Makefile
  2. +2 −0  test/test.js
View
4 Makefile
@@ -0,0 +1,4 @@
+test:
+ node test/test.js
+
+.PHONY: test
View
2  test/test.js
@@ -34,4 +34,6 @@ a.deepEqual(parse(['--paths', '/test.js', '/test1.js']), {'--paths': ['/test.js'
a.deepEqual(parse(['--paths', '/test.js', '/test1.js', '-a', 'testa']), {'--paths': ['/test.js', '/test1.js'], '-a': 'testa'}, 'node script.js --paths /test.js /test1.js -a testa');
+a.deepEqual(parse(['--port', '80', '8080']), {'--port': [80, 8080]}, 'node server.js --port 80 8080');
+
util.print('All tests ok\n');
Please sign in to comment.
Something went wrong with that request. Please try again.