Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a test command to npm

  • Loading branch information...
commit 875ac93d6524cca41561aff48010a8ba42eb188b 1 parent 0f37084
Philipp Borgers booo authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  package.json
  2. +1 −1  test/unittest.js
3  package.json
View
@@ -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"
}
}
2  test/unittest.js
View
@@ -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 */
Please sign in to comment.
Something went wrong with that request. Please try again.