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

25 lines
766 B
JavaScript

import { getParsedDataset } from '~/pages/admin/application_settings/utils';
import { rawMockData, mockData } from './mock_data';
describe('utils', () => {
describe('getParsedDataset', () => {
it('returns correct results', () => {
expect(
getParsedDataset({
dataset: rawMockData,
booleanAttributes: [
'signupEnabled',
'requireAdminApprovalAfterUserSignup',
'domainDenylistEnabled',
'denylistTypeRawSelected',
'emailRestrictionsEnabled',
'passwordNumberRequired',
'passwordLowercaseRequired',
'passwordUppercaseRequired',
'passwordSymbolRequired',
],
}),
).toEqual(mockData);
});
});
});