Permalink
Browse files

add a test command to npm

  • Loading branch information...
1 parent 0f37084 commit 875ac93d6524cca41561aff48010a8ba42eb188b @booo booo committed May 7, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 package.json
  2. +1 −1 test/unittest.js
View
3 package.json
@@ -11,6 +11,7 @@
"url": "git://github.com/chrisdew/protobuf.git"
},
"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"
}
}
View
2 test/unittest.js
@@ -1,7 +1,7 @@
var assert = require('assert'),
puts = require('util').puts,
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 */
/* copied from http://github.com/bnoordhuis/node-iconv/blob/master/test.js */

0 comments on commit 875ac93

Please sign in to comment.