UNPKG

unleash-server

Version:

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

23 lines 844 B
import { validateSchema } from '../validate.js'; test('projectSchema', () => { const data = { name: 'Default', id: 'default', description: 'Default project', health: 74, featureCount: 10, memberCount: 3, updatedAt: '2022-06-28T17:33:53.963Z', }; expect(validateSchema('#/components/schemas/projectSchema', {})).not.toBeUndefined(); expect(validateSchema('#/components/schemas/projectSchema', data)).toBeUndefined(); }); test('projectSchema with only required', () => { const data = { name: 'Default', id: 'default', }; expect(validateSchema('#/components/schemas/projectSchema', {})).not.toBeUndefined(); expect(validateSchema('#/components/schemas/projectSchema', data)).toBeUndefined(); }); //# sourceMappingURL=project-schema.test.js.map