Skip to content

Commit

Permalink
add a test command to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
booo committed May 7, 2012
1 parent 0f37084 commit 875ac93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -11,6 +11,7 @@
"url": "git://github.com/chrisdew/protobuf.git" "url": "git://github.com/chrisdew/protobuf.git"
}, },
"scripts": { "scripts": {
"install": "PROTOBUF=/usr/local/lib node-waf configure clean build" "install": "PROTOBUF=/usr/local/lib node-waf configure clean build",
"test": "node test/unittest.js"
} }
} }
2 changes: 1 addition & 1 deletion test/unittest.js
@@ -1,7 +1,7 @@
var assert = require('assert'), var assert = require('assert'),
puts = require('util').puts, puts = require('util').puts,
read = require('fs').readFileSync, read = require('fs').readFileSync,
Schema = require('protobuf_for_node').Schema; Schema = require('../').Schema;


/* hack to make the tests pass with node v0.3.0's new Buffer model */ /* hack to make the tests pass with node v0.3.0's new Buffer model */
/* copied from http://github.com/bnoordhuis/node-iconv/blob/master/test.js */ /* copied from http://github.com/bnoordhuis/node-iconv/blob/master/test.js */
Expand Down

0 comments on commit 875ac93

Please sign in to comment.