mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
test: Fix the ApplicationSettings test to work with the default camelize option
This commit is contained in:
parent
844e8f44ab
commit
052d6ea11e
@ -2,15 +2,17 @@ import { ApplicationSettings } from '../../../src';
|
||||
|
||||
describe('ApplicationSettings.all', () => {
|
||||
let settings: ReturnType<ApplicationSettings['all']>;
|
||||
|
||||
beforeEach(async () => {
|
||||
const service = new ApplicationSettings({
|
||||
url: process.env.GITLAB_URL,
|
||||
host: process.env.GITLAB_URL,
|
||||
token: process.env.PERSONAL_ACCESS_TOKEN,
|
||||
});
|
||||
|
||||
settings = await service.all();
|
||||
});
|
||||
it('should return an array', async () => {
|
||||
|
||||
it('Should return an object', async () => {
|
||||
expect(settings).toBeObject();
|
||||
});
|
||||
|
||||
@ -18,7 +20,6 @@ describe('ApplicationSettings.all', () => {
|
||||
* @see https://docs.gitlab.com/ee/api/settings.html#get-current-application-settings
|
||||
*/
|
||||
it('should contain all the required properties', async () => {
|
||||
expect(Object.keys(settings)).toContain('id');
|
||||
expect(Object.keys(settings)).toContain('gravatar_enabled');
|
||||
expect(settings).toContainKeys(['id', 'gravatar_enabled']);
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user