Skip to content

Supertest Error #7

@jackmarketon

Description

@jackmarketon

There is an error in the testing that allows the tests to pass, before supertest errors out, for Koa/Monk.

Error follows:

[projectroot]/node_modules/supertest/node_modules/superagent/lib/node/index.js:728
  if (2 == fn.length) return fn(err, res);
             ^
TypeError: Cannot read property 'length' of undefined
    at Test.Request.callback ([projectroot]/node_modules/supertest/node_modules/superagent/lib/node/index.js:728:14)
    at ClientRequest.<anonymous> ([projectroot]/Tmp/node_modules/supertest/node_modules/superagent/lib/node/index.js:693:10)
    at ClientRequest.EventEmitter.emit (events.js:107:17)
    at Socket.socketOnEnd (_http_client.js:288:9)
    at Socket.EventEmitter.emit (events.js:129:20)
    at _stream_readable.js:898:16
    at process._tickCallback (node.js:343:11)
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions