UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

20 lines 690 B
import { validateSchema } from '../validate.js'; test('contextFieldSchema', () => { const data = { name: '', description: '', stickiness: false, sortOrder: 0, createdAt: '2022-01-01T00:00:00.000Z', legalValues: [ { value: 'a' }, { value: 'b', description: '' }, { value: 'c', description: 'd' }, ], }; expect(validateSchema('#/components/schemas/contextFieldSchema', data)).toBeUndefined(); }); test('contextFieldSchema empty', () => { expect(validateSchema('#/components/schemas/contextFieldSchema', {})).toMatchSnapshot(); }); //# sourceMappingURL=context-field-schema.test.js.map