test/integration/js2dt_integration.test.js
/**
 * Test file by running js2dt script on it and then validating
 * with webapi-parser.
 */
Test file by running js2dt script on it and then validating
with webapi-parser.
Test file by running js2dt script on it and then validating with webapi - parser .
async function defineTests () {
  describe('js2dt CLI integration test', () => {
    helpers.getFiles(EXAMPLES_FOLDER).forEach(filepath => {
      it(`should convert ${filepath}`, async () => {
        const ramlStr = await js2dtCLI(filepath, 'TestType')
        await validateRamlDataType(ramlStr)
      })
    })
  })
}
async function defineTests ( ) { describe ( 'js2dt CLI integration test' , ( ) => { helpers . getFiles ( EXAMPLES_FOLDER ) . forEach ( filepath => { it ( ` ${ filepath } ` , async ( ) => { const ramlStr = await js2dtCLI ( filepath , 'TestType' ) await validateRamlDataType ( ramlStr ) } ) } ) } ) }
Test file by running js2dt script on it and then validating
 with webapi-parser.
Test file by running js2dt script on it and then validating with webapi - parser .