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.
29 lines
748 B
TypeScript
29 lines
748 B
TypeScript
import type { DeprecatedProjectOverviewSchema } from './deprecated-project-overview-schema';
|
|
import { validateSchema } from '../validate';
|
|
|
|
test('deprecatedProjectOverviewSchema', () => {
|
|
const data: DeprecatedProjectOverviewSchema = {
|
|
name: 'project',
|
|
version: 3,
|
|
featureNaming: {
|
|
description: 'naming description',
|
|
example: 'a',
|
|
pattern: '[aZ]',
|
|
},
|
|
};
|
|
|
|
expect(
|
|
validateSchema(
|
|
'#/components/schemas/deprecatedProjectOverviewSchema',
|
|
data,
|
|
),
|
|
).toBeUndefined();
|
|
|
|
expect(
|
|
validateSchema(
|
|
'#/components/schemas/deprecatedProjectOverviewSchema',
|
|
{},
|
|
),
|
|
).toMatchSnapshot();
|
|
});
|