mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
#329 Fixed issue where --test was failing for cli
This commit is contained in:
@@ -150,7 +150,7 @@ function convert(swaggerData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (testFlag) {
|
if (testFlag) {
|
||||||
swaggerData = fs.readFileSync('../examples/sample-swagger.yaml', 'utf8');
|
swaggerData = fs.readFileSync(path.resolve(__dirname, '..', 'examples', 'sample-swagger.yaml'), 'utf8');
|
||||||
convert(swaggerData);
|
convert(swaggerData);
|
||||||
}
|
}
|
||||||
else if (inputFile) {
|
else if (inputFile) {
|
||||||
|
|||||||
Reference in New Issue
Block a user