debian-mirror-gitlab/spec/frontend/projects/settings/utils_spec.js

12 lines
461 B
JavaScript
Raw Normal View History

2023-03-04 22:38:38 +05:30
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);
});
});
});