mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
93468211d6
* chore: update eslint * chore: update rules and style * chore: aling formatting * chore: update ci rules * chore: aling formatting * chore: aling formatting
25 lines
652 B
TypeScript
25 lines
652 B
TypeScript
import { HTTP_STATUS } from '../../../src/lib/constants';
|
|
|
|
export default function (server2) {
|
|
describe('test plugin middlewares', () => {
|
|
test('should serve the registered route ES5', () => {
|
|
return server2
|
|
.request({
|
|
uri: '/test/route',
|
|
method: 'GET'
|
|
})
|
|
.status(HTTP_STATUS.OK)
|
|
.body_ok('this is a custom route');
|
|
});
|
|
|
|
test('should serve the registered route ES6', () => {
|
|
return server2
|
|
.request({
|
|
uri: '/test/route/es6',
|
|
method: 'GET'
|
|
})
|
|
.status(HTTP_STATUS.OK)
|
|
.body_ok('this is a custom route es6');
|
|
});
|
|
});
|
|
}
|