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 /.', () => {
strictEqual(getHttpMethod(/* upperFirstCamelName */Controller, 'foo'), 'GET');
strictEqual(getPath(/* upperFirstCamelName */Controller, 'foo'), '/');
});
it('should handle requests at GET /:testFooBarId.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'getById'), 'GET');
strictEqual(getPath(TestFooBarController, 'getById'), '/:testFooBarId');
});
it('should handle requests at GET /:testFooBarId.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'getById'), 'GET');
strictEqual(getPath(TestFooBarController, 'getById'), '/:testFooBarId');
});
it('should handle requests at PUT /.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'put'), 'PUT');
strictEqual(getPath(TestFooBarController, 'put'), '/');
});
it('should handle requests at PATCH /.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'patch'), 'PATCH');
strictEqual(getPath(TestFooBarController, 'patch'), '/');
});
it('should handle requests at PATCH /:testFooBarId.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'patchById'), 'PATCH');
strictEqual(getPath(TestFooBarController, 'patchById'), '/:testFooBarId');
});
it('should handle requests at POST /:testFooBarId.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'postById'), 'POST');
strictEqual(getPath(TestFooBarController, 'postById'), '/:testFooBarId');
});
it('should handle requests at DELETE /.', () => {
strictEqual(getHttpMethod(TestFooBarController, 'delete'), 'DELETE');
strictEqual(getPath(TestFooBarController, 'delete'), '/');
});
it('should handle requests at GET /.', () => {
strictEqual(getHttpMethod(ViewController, 'home'), 'GET');
strictEqual(getPath(ViewController, 'home'), '/');
});
it('should handle requests at GET /.', () => {
strictEqual(getHttpMethod(ProductController, 'get'), 'GET');
strictEqual(getPath(ProductController, 'get'), '/');
});