mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
Adding in line comment
This commit is contained in:
parent
85faa4a97a
commit
ed460aaf2f
@ -3,8 +3,7 @@ import { BaseService } from '../../src/infrastructure';
|
||||
describe('Creation of BaseService instance', () => {
|
||||
test('If a token or oauthToken is not passed, throw an error', async () => {
|
||||
expect(() => {
|
||||
// eslint-disable-line no-unused-vars
|
||||
const service = new BaseService();
|
||||
const service = new BaseService(); // eslint-disable-line no-unused-vars
|
||||
}).toThrowError('`token` (private-token) or `oauth_token` is mandatory');
|
||||
});
|
||||
|
||||
@ -38,4 +37,4 @@ describe('Creation of BaseService instance', () => {
|
||||
|
||||
expect(service.headers['private-token']).toBe('1234');
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user