I run unit tests using Mocha, and instead of showing all thrown AssertionErrors in the reporter, Mocha crashes on the first error. Any suggestions?
Error on crash:
/Users/Robert/Code/JRJ/Server/node_modules/chai/lib/chai/assertion.js:106 throw new AssertionError(msg, { ^ AssertionError: expected 200 to equal 202 npm ERR! weird error 8 npm ERR! not ok code 0
This is the same if I use Chai or the assert built-in library. I start Mocha with this command (I start it with npm test ):
mocha --reporter 'spec' --recursive
And the library versions used are the following:
- node: 0.10.18
- mocha: 1.12.0
- chai: 1.8.0
- hapi: 1.10.0
Security Code:
var hapi = require('hapi'), expect = require('chai').expect, assert = require('assert'); describe("Customer API", function(){ var server = require('../../../../src/apis/customer');
source share