UNPKG

unleash-server

Version:

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

24 lines 917 B
import { validateSchema } from '../validate.js'; test('createFeatureSchema', () => { const data = { name: 'disable-comments', type: 'release', description: 'Controls disabling of the comments section in case of an incident', impressionData: false, tags: [ { type: 'simple', value: 'tag' }, { type: 'simple', value: 'mytag' }, ], }; expect(validateSchema('#/components/schemas/createFeatureSchema', data)).toBeUndefined(); }); test('createFeatureSchema without tags', () => { const data = { name: 'disable-comments', type: 'release', description: 'Controls disabling of the comments section in case of an incident', impressionData: false, }; expect(validateSchema('#/components/schemas/createFeatureSchema', data)).toBeUndefined(); }); //# sourceMappingURL=create-feature-schema.test.js.map