From 7b2301ff9cd9fd101be97c088b3044c51a6b9078 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 13 Oct 2020 13:10:49 -0400 Subject: [PATCH] fix: enable tests --- test/api.js | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/test/api.js b/test/api.js index b9493c1df4..a639590e18 100644 --- a/test/api.js +++ b/test/api.js @@ -236,18 +236,15 @@ describe('Read API', async () => { }); describe('Write API', async () => { + const apiPath = path.resolve(__dirname, '../public/openapi/write.yaml'); - // let writeApi; - // const apiPath = path.resolve(__dirname, '../public/openapi/write.yaml'); - - // it('should pass OpenAPI v3 validation', async () => { - // try { - // await SwaggerParser.validate(apiPath); - // } catch (e) { - // assert.ifError(e); - // } - // }); + it('should pass OpenAPI v3 validation', async () => { + try { + await SwaggerParser.validate(apiPath); + } catch (e) { + assert.ifError(e); + } + }); - // writeApi = await SwaggerParser.dereference(apiPath); - // console.log(writeApi); + console.log(await SwaggerParser.dereference(apiPath)); });