mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
20 lines
371 B
JavaScript
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')
|
||
|
})
|
||
|
})
|
||
|
}
|