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

Unit test failure because of the path typo #63

Closed
subeeshcbabu-zz opened this issue Jan 27, 2016 · 0 comments
Closed

Unit test failure because of the path typo #63

subeeshcbabu-zz opened this issue Jan 27, 2016 · 0 comments

Comments

@subeeshcbabu-zz
Copy link
Member

          '#':  require(Path.join(__dirname, './../config/api.json')) 
                        ^

ReferenceError: Path is not defined

Looks like the require uses path = require('path')

https://github.com/krakenjs/generator-swaggerize/blob/master/app/templates/_test_express.js#L4

And the code uses
require(Path.join(__dirname, './<%=apiPath%>'))
https://github.com/krakenjs/generator-swaggerize/blob/master/app/templates/_test_express.js#L62

subeeshcbabu-zz pushed a commit to subeeshcbabu-zz/generator-swaggerize that referenced this issue Jan 27, 2016
grawk added a commit that referenced this issue Feb 3, 2016
@tlivings tlivings changed the title Unit test failure because of the path typo Unit test failure because of the path typo Feb 3, 2016
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