#329 Fixed issue where --test was failing for cli

This commit is contained in:
Vishal Shingala
2021-02-09 22:01:38 +05:30
parent 845737fa63
commit 1bb3ea5d2c

View File

@@ -150,7 +150,7 @@ function convert(swaggerData) {
}
if (testFlag) {
swaggerData = fs.readFileSync('../examples/sample-swagger.yaml', 'utf8');
swaggerData = fs.readFileSync(path.resolve(__dirname, '..', 'examples', 'sample-swagger.yaml'), 'utf8');
convert(swaggerData);
}
else if (inputFile) {