1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/instance-admin-stats-schema.test.ts
Ivar Conradi Østhus cf4fc2303b
Feat/stats service (#2211)
Introduces an instance stats service exposing usage metrics of the Unleash installation.
2022-10-25 13:10:27 +02:00

14 lines
378 B
TypeScript

import { validateSchema } from '../validate';
import { InstanceAdminStatsSchema } from './instance-admin-stats-schema';
test('instanceAdminStatsSchema', () => {
const data: InstanceAdminStatsSchema = {
instanceId: '123',
users: 0,
};
expect(
validateSchema('#/components/schemas/instanceAdminStatsSchema', data),
).toBeUndefined();
});