debian-mirror-gitlab/spec/frontend/projects/settings/utils_spec.js
2023-03-04 22:38:38 +05:30

11 lines
461 B
JavaScript

import { getAccessLevels } from '~/projects/settings/utils';
import { pushAccessLevelsMockResponse, pushAccessLevelsMockResult } from './mock_data';
describe('Utils', () => {
describe('getAccessLevels', () => {
it('takes accessLevels response data and returns acecssLevels object', () => {
const pushAccessLevels = getAccessLevels(pushAccessLevelsMockResponse);
expect(pushAccessLevels).toEqual(pushAccessLevelsMockResult);
});
});
});