0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/test/functional/plugins/middleware.spec.js

20 lines
363 B
JavaScript
Raw Normal View History

'use strict';
require('../lib/startup');
module.exports = function () {
const server2 = process.server2;
2017-12-02 05:19:08 -05:00
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')
})
})
}