UNPKG

generator-sails-rest-api

Version:

Yeoman generator that provides already configured and optimized Sails REST API with bundle of predefined features

28 lines (23 loc) 742 B
"use strict"; const path = require('path'); const assert = require('yeoman-assert'); const test = require('yeoman-test'); describe('sails-rest-api:swagger', () => { describe('Should properly scaffold swagger support with default configuration', () => { before(() => test.run(path.join(__dirname, '../../generators/swagger'))); it('Should properly create api files', () => { assert.file([ 'config/swagger.js', 'api/controllers/DocsController.js', 'api/hooks/swagger/index.js', 'api/hooks/swagger/lib/spec.js', 'api/hooks/swagger/lib/xfmr.js' ]); }); it('Should properly create explorer folder', () => { assert.file([ 'explorer' ]); }) }); });