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
Håkan Canberger 374a5e8e7b feat: Add middleware plugins from fl4re/sinopia
This is basically the PR fl4re/sinopia#18 by @fredr
2017-11-01 15:01:25 +01:00

20 lines
371 B
JavaScript

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