Skip to content

Mocha Crash -- mocha/lib/reporters/base.js:208:27 -- TypeError: message.match is not a function #2050

Closed

Description

Mocha crashes on this exception below.
mocha": "2.3.4"

> mocha --compilers js:babel-core/register --recursive "--watch" "test/wallet_api_spec.js"




  Wallet API client
    ✓ createWallet (147ms)
    ✓ createWallet (duplicate) (144ms)
    ✓ fetchWallet (Recovery)
    ✓ fetchWallet (Not Modified)
    ✓ fetchWallet (Not Exist)
    1) saveWallet
    2) saveWallet (Conflict)
    3) saveWallet (Unknown key)
    ✓ changePassword
    ✓ deleteWallet
WARN: close called with active subscriptions 2


  7 passing (2s)
  3 failing

  4) "after all" hook

  7 passing (2s)
  4 failing

/home/jcalfee/plasma/node_modules/mocha/lib/reporters/base.js:208
      var match = message.match(/^([^:]+): expected/);
                          ^
TypeError: message.match is not a function
    at /home/jcalfee/plasma/node_modules/mocha/lib/reporters/base.js:208:27
    at Array.forEach (native)
    at Function.exports.list (/home/jcalfee/plasma/node_modules/mocha/lib/reporters/base.js:163:12)
    at Spec.Base.epilogue (/home/jcalfee/plasma/node_modules/mocha/lib/reporters/base.js:328:10)
    at emitNone (events.js:72:20)
    at Runner.emit (events.js:163:7)
    at /home/jcalfee/plasma/node_modules/mocha/lib/runner.js:735:12
    at done (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:619:7)
    at Runner.next [as nextSuite] (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:586:16)
    at Runner.uncaught (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:703:17)
    at process.uncaught (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:727:10)
    at emitOne (events.js:77:13)
    at process.emit (events.js:166:7)
    at process._fatalException (node.js:218:26)
    at emitNone (events.js:72:20)
    at Runner.emit (events.js:163:7)
    at /home/jcalfee/plasma/node_modules/mocha/lib/runner.js:735:12
    at /home/jcalfee/plasma/node_modules/mocha/lib/runner.js:626:9
    at next (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:283:14)
    at Immediate._onImmediate (/home/jcalfee/plasma/node_modules/mocha/lib/runner.js:319:5)
    at processImmediate [as _immediateCallback] (timers.js:368:17)
npm ERR! Test failed.  See above for more details.

npm ERR! Linux 3.13.0-66-generic
npm ERR! argv "/home/jcalfee/opt/iojs-v2.0.1-linux-x64/bin/iojs" "/home/jcalfee/opt/iojs-v2.0.1-linux-x64/bin/npm" "run" "test:watch" "--" "test/wallet_api_spec.js"
npm ERR! node v2.0.1
npm ERR! npm  v2.9.0
npm ERR! code ELIFECYCLE
npm ERR! @graphene/wallet-client@1.0.0 test:watch: `npm test -- --watch "test/wallet_api_spec.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @graphene/wallet-client@1.0.0 test:watch script 'npm test -- --watch "test/wallet_api_spec.js"'.
npm ERR! This is most likely a problem with the @graphene/wallet-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm test -- --watch "test/wallet_api_spec.js"
npm ERR! You can get their info via:
npm ERR!     npm owner ls @graphene/wallet-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/jcalfee/plasma/libraries/@graphene/wallet-client/npm-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

good first issuenew contributors should look here!status: accepting prsMocha can use your help with this one!type: buga defect, confirmed by a maintainer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions