1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/openapi/spec/application-overview-schema.test.ts

27 lines
738 B
TypeScript
Raw Normal View History

import { validateSchema } from '../validate';
test('applicationOverviewSchema', () => {
const app = {
projects: ['default', 'dx'],
featureCount: 12,
environments: [
{
name: 'production',
instanceCount: 34,
sdks: ['unleash-client-node:5.4.0'],
lastSeen: '2021-10-01T12:00:00Z',
},
{
name: 'development',
instanceCount: 16,
sdks: ['unleash-client-java:5.4.0'],
lastSeen: '2021-10-01T12:00:00Z',
},
],
};
expect(
validateSchema('#/components/schemas/applicationOverviewSchema', app),
).toBeUndefined();
});