Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Unit test of generated application fails because of the older version of enjoi. #68

Closed
subeeshcbabu-zz opened this issue Feb 3, 2016 · 0 comments

Comments

@subeeshcbabu-zz
Copy link
Member

assert.js:89
  throw new assert.AssertionError({
  ^
AssertionError: Can not find schema reference: #/definitions/newPet.
    at refresolver (/swaggerize-examples/petstore-simple-express/node_modules/enjoi/lib/enjoi.js:42:16)
    at resolve (/swaggerize-examples/petstore-simple-express/node_modules/enjoi/lib/enjoi.js:17:28)
    at enjoi (/swaggerize-examples/petstore-simple-express/node_modules/enjoi/lib/enjoi.js:152:12)
    at Object.make (/swaggerize-examples/petstore-simple-express/node_modules/swaggerize-routes/lib/validator.js:83:26)
    at /swaggerize-examples/petstore-simple-express/node_modules/swaggerize-routes/lib/validator.js:54:29
    at Array.map (native)
    at Object.makeAll (/swaggerize-examples/petstore-simple-express/node_modules/swaggerize-routes/lib/validator.js:51:44)
    at /swaggerize-examples/petstore-simple-express/node_modules/swaggerize-routes/lib/buildroutes.js:65:42
    at Array.forEach (native)
    at /swaggerize-examples/petstore-simple-express/node_modules/swaggerize-routes/lib/buildroutes.js:26:21

swaggerize-express@^4 brings in "enjoi": "^1.0.0"
https://github.com/krakenjs/generator-swaggerize/blob/master/app/templates/_package.json#L21

However the generated app's dev dependency on enjoi is stuck at an older version making the unit test fail.
https://github.com/krakenjs/generator-swaggerize/blob/master/app/templates/_test_express.js#L59

Generated APP: https://github.com/subii/swaggerize-examples/tree/master/petstore-simple-express

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant