1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/functional/plugins/middleware.spec.js
2018-01-07 07:59:36 +00:00

20 lines
363 B
JavaScript

'use strict';
require('../lib/startup');
module.exports = function () {
const server2 = process.server2;
describe('middlewares', () => {
test('should serve the registered route', () => {
return server2.request({
uri: '/test/route',
method: 'GET'
})
.status(200)
.body_ok('this is a custom route')
})
})
}