diff options
Diffstat (limited to 'spec/frontend/registry/settings/utils_spec.js')
-rw-r--r-- | spec/frontend/registry/settings/utils_spec.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/spec/frontend/registry/settings/utils_spec.js b/spec/frontend/registry/settings/utils_spec.js deleted file mode 100644 index 7bc627908af..00000000000 --- a/spec/frontend/registry/settings/utils_spec.js +++ /dev/null @@ -1,37 +0,0 @@ -import { - formOptionsGenerator, - optionLabelGenerator, - olderThanTranslationGenerator, -} from '~/registry/settings/utils'; - -describe('Utils', () => { - describe('optionLabelGenerator', () => { - it('returns an array with a set label', () => { - const result = optionLabelGenerator( - [{ variable: 1 }, { variable: 2 }], - olderThanTranslationGenerator, - ); - expect(result).toEqual([ - { variable: 1, label: '1 day' }, - { variable: 2, label: '2 days' }, - ]); - }); - }); - - describe('formOptionsGenerator', () => { - it('returns an object containing olderThan', () => { - expect(formOptionsGenerator().olderThan).toBeDefined(); - expect(formOptionsGenerator().olderThan).toMatchSnapshot(); - }); - - it('returns an object containing cadence', () => { - expect(formOptionsGenerator().cadence).toBeDefined(); - expect(formOptionsGenerator().cadence).toMatchSnapshot(); - }); - - it('returns an object containing keepN', () => { - expect(formOptionsGenerator().keepN).toBeDefined(); - expect(formOptionsGenerator().keepN).toMatchSnapshot(); - }); - }); -}); |