mozilla/browserid — Issue #825: Back-end unit tests failing on local install
Author: jbonacci
Created: 2011-12-29 23:52:49+00:00
State: open

Performed a simple, local install to my Mac.
Ran the back-end unit tests with the following command:
npm test

Failed at this point in the tests:
tests/verifier-test.js
The "sys" module is now called "util". It should have a similar interface.
·····················································✗·········

generating a valid assertion with new style and removing the last char from it
✗ fails with a nice error
» expected 'failure',
got	'okay' (===) // verifier-test.js:616
✗ Broken » 62 honored ∙ 1 broken (2.846s)
npm ERR! browserid@0.0.1 test: `./scripts/run_all_tests.sh`
npm ERR! `sh "-c" "./scripts/run_all_tests.sh"` failed with 1
npm ERR!
npm ERR! Failed at the browserid@0.0.1 test script.
npm ERR! This is most likely a problem with the browserid package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./scripts/run_all_tests.sh
npm ERR! You can get their info via:
npm ERR! npm owner ls browserid
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "test"
npm ERR! cwd /Users/jbonacci/Git/browserid
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.1.0-alpha-6
npm ERR! code ELIFECYCLE
npm ERR! message browserid@0.0.1 test: `./scripts/run_all_tests.sh`
npm ERR! message `sh "-c" "./scripts/run_all_tests.sh"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/jbonacci/Git/browserid/npm-debug.log
npm not ok