mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
25 lines
617 B
TypeScript
25 lines
617 B
TypeScript
|
import { validateSchema } from '../validate';
|
||
|
import { UiConfigSchema } from './ui-config-schema';
|
||
|
|
||
|
test('uiConfigSchema', () => {
|
||
|
const data: UiConfigSchema = {
|
||
|
slogan: 'a',
|
||
|
version: 'a',
|
||
|
unleashUrl: 'a',
|
||
|
baseUriPath: 'a',
|
||
|
disablePasswordAuth: false,
|
||
|
segmentValuesLimit: 0,
|
||
|
strategySegmentsLimit: 0,
|
||
|
versionInfo: {
|
||
|
current: {},
|
||
|
latest: {},
|
||
|
isLatest: true,
|
||
|
instanceId: 'a',
|
||
|
},
|
||
|
};
|
||
|
|
||
|
expect(
|
||
|
validateSchema('#/components/schemas/uiConfigSchema', data),
|
||
|
).toBeUndefined();
|
||
|
});
|