eslint
This commit is contained in:
10
test/main.js
10
test/main.js
@ -1,4 +1,4 @@
|
||||
const {describe, it} = require('mocha');
|
||||
const { describe, it } = require('mocha');
|
||||
const expect = require('chai').expect;
|
||||
|
||||
const requestor = require('../index');
|
||||
@ -25,6 +25,12 @@ const mock = {
|
||||
describe('requestor', () => {
|
||||
it('should detect all requests on root', () => {
|
||||
requestor(mock, './test/onroot', {});
|
||||
expect(mock.registered).to.have.all.keys(['post-/', 'get-/', 'put-/', 'delete-/', 'all-/']);
|
||||
expect(mock.registered).to.have.all.keys([
|
||||
'post-/',
|
||||
'get-/',
|
||||
'put-/',
|
||||
'delete-/',
|
||||
'all-/'
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user