mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
20 lines
471 B
TypeScript
20 lines
471 B
TypeScript
import { validateSchema } from '../validate';
|
|
import type { AddonSchema } from './addon-schema';
|
|
|
|
test('addonSchema', () => {
|
|
const data: AddonSchema = {
|
|
provider: 'some-provider',
|
|
enabled: true,
|
|
description: null,
|
|
id: 5,
|
|
parameters: {
|
|
someKey: 'some-value',
|
|
},
|
|
events: ['some-event'],
|
|
};
|
|
|
|
expect(
|
|
validateSchema('#/components/schemas/addonSchema', data),
|
|
).toBeUndefined();
|
|
});
|