import { validateSchema } from '../validate'; import { FeatureUsageSchema } from './feature-usage-schema'; test('featureUsageSchema', () => { const data: FeatureUsageSchema = { featureName: 'some-name', version: 2, lastHourUsage: [ { environment: 'some-env', yes: 50, no: 32, timestamp: new Date(2020, 6, 1, 17, 50, 3).toISOString(), }, ], maturity: 'stable', seenApplications: [], }; expect( validateSchema('#/components/schemas/featureUsageSchema', data), ).toBeUndefined(); });