Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing tests #45

Closed
mauron85 opened this issue Mar 3, 2019 · 2 comments
Closed

Failing tests #45

mauron85 opened this issue Mar 3, 2019 · 2 comments

Comments

@mauron85
Copy link

mauron85 commented Mar 3, 2019

Just tried to run test on HEAD. There are 3 failed tests:

  1) sinon-mongoose
       should made Mongoose document methods chainables
         #verify chained:
     TypeError: Cannot read property 'events' of undefined
      at Query.exec (node_modules/.registry.npmjs.org/mongoose/5.4.16/node_modules/mongoose/lib/query.js:4078:17)
      at Context.<anonymous> (test/index.js:124:10)

  2) sinon-mongoose
       using sinon sandbox
         Verify chained - expectation.never():
     TypeError: Cannot read property 'events' of undefined
      at Query.exec (node_modules/.registry.npmjs.org/mongoose/5.4.16/node_modules/mongoose/lib/query.js:4078:17)
      at Context.<anonymous> (test/index.js:205:10)

  3) sinon-mongoose
       using sinon sandbox
         "after each" hook for "Verify chained - expectation.never()":
     ExpectationError: Expected limit([...]) once (never called)
      at Object.fail (node_modules/.registry.npmjs.org/sinon/6.1.0/node_modules/sinon/lib/sinon/mock-expectation.js:281:25)
      at Object.verify (node_modules/.registry.npmjs.org/sinon/6.1.0/node_modules/sinon/lib/sinon/mock.js:108:29)
      at Object.chainedVerify [as verify] (lib/index.js:58:20)
      at Object.chainedVerify [as verify] (lib/index.js:60:30)
      at Object.chainedVerify [as verify] (lib/index.js:60:30)
      at /Users/finch/dev/sinon-mongoose/node_modules/.registry.npmjs.org/sinon/6.1.0/node_modules/sinon/lib/sinon/sandbox.js:32:21
      at Array.filter (<anonymous>)
      at applyOnEach (node_modules/.registry.npmjs.org/sinon/6.1.0/node_modules/sinon/lib/sinon/sandbox.js:31:13)
      at Sandbox.verify (node_modules/.registry.npmjs.org/sinon/6.1.0/node_modules/sinon/lib/sinon/sandbox.js:340:9)
      at Context.<anonymous> (test/index.js:149:13)
@YasharF
Copy link
Contributor

YasharF commented Apr 8, 2019

Tests seem to work fine for me. Per error message you posted, it seems like that you are not running the tests on HEAD, since the error is stating "mongoose/5.4.16". HEAD is at mongoose 5.1.7. Did you run a command such as npm audit fix or regenerate package-lock.json?

@mauron85
Copy link
Author

mauron85 commented Apr 8, 2019

I've probably upgraded mongoose to test against latest. Closing for now.

@mauron85 mauron85 closed this as completed Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants