UNPKG

unleash-server

Version:

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

24 lines 757 B
import { validateSchema } from '../validate.js'; test('projectOverviewSchema', () => { const data = { name: 'project', version: 3, featureNaming: { description: 'naming description', example: 'a', pattern: '[aZ]', }, featureTypeCounts: [ { type: 'release', count: 1, }, ], onboardingStatus: { status: 'onboarding-started', }, }; expect(validateSchema('#/components/schemas/projectOverviewSchema', data)).toBeUndefined(); expect(validateSchema('#/components/schemas/projectOverviewSchema', {})).toMatchSnapshot(); }); //# sourceMappingURL=project-overview-schema.test.js.map