23 lines
649 B
JavaScript
23 lines
649 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',
|
||
|
'sendUserConfirmationEmail',
|
||
|
'domainDenylistEnabled',
|
||
|
'denylistTypeRawSelected',
|
||
|
'emailRestrictionsEnabled',
|
||
|
],
|
||
|
}),
|
||
|
).toEqual(mockData);
|
||
|
});
|
||
|
});
|
||
|
});
|