Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should handle requests at GET /:testFooBarId.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'getById'), 'GET');
strictEqual(getPath(TestFooBarController, 'getById'), '/:testFooBarId');
});
it('should handle requests at DELETE /.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'delete'), 'DELETE');
strictEqual(getPath(TestFooBarController, 'delete'), '/');
});
it('should handle requests at POST /.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'post'), 'POST');
strictEqual(getPath(TestFooBarController, 'post'), '/');
});
it('should handle requests at GET /:testFooBarId.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'getById'), 'GET');
strictEqual(getPath(TestFooBarController, 'getById'), '/:testFooBarId');
});
it('should handle requests at GET /.', () => {
strictEqual(getHttpMethod(ConcreteClass, 'swaggerUiBundle'), 'GET');
strictEqual(getPath(ConcreteClass, 'swaggerUiBundle'), '/swagger-ui-bundle.js');
});
it('should handle requests at GET /.', () => {
strictEqual(getHttpMethod(ProductController, 'get'), 'GET');
strictEqual(getPath(ProductController, 'get'), '/');
});
it('should handle requests at GET /admin.', () => {
strictEqual(getHttpMethod(ViewController, 'admin'), 'GET');
strictEqual(getPath(ViewController, 'admin'), '/admin');
});
it('should handle requests at DELETE /:id.', () => {
strictEqual(getHttpMethod(ProductController, 'deleteById'), 'DELETE');
strictEqual(getPath(ProductController, 'deleteById'), '/:id');
});
it('should handle requests at GET /:id.', () => {
strictEqual(getHttpMethod(ProductController, 'getById'), 'GET');
strictEqual(getPath(ProductController, 'getById'), '/:id');
});
it('should handle requests at Get /.', () => {
strictEqual(getHttpMethod(ViewController, 'index'), 'GET');
strictEqual(getPath(ViewController, 'index'), '/');
});