We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File structure that is being regressed and throwing an error.
Controller is being passed in as an array when expecting a function.
export default [ { version: '2.0.0', controller(req, res, next) { res.send('Versioning') } } ];
Tests that pass based on current and test that fails based on regressed.
describe('Versioning', () => { let getRoute; let postRoute; const options = { routes: path.join(__dirname, 'routes', 'versioning') }; beforeEach(done => server.use(module(server, options, (err, server) => { getRoute = server.router.getRoutes().get; postRoute = server.router.getRoutes().post; done(); })) ); it('should be v2.0.0', () => { should.equal(getRoute.spec.version, '2.0.0'); }); it('should be v2.0.0', () => { should.equal(postRoute.spec.version, '2.0.0'); }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
File structure that is being regressed and throwing an error.
Controller is being passed in as an array when expecting a function.
Tests that pass based on current and test that fails based on regressed.
The text was updated successfully, but these errors were encountered: