assert.ok will call mocha.throwError when it is defined