unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
12 lines • 396 B
JavaScript
import { validateSchema } from '../validate.js';
test('roleSchema', () => {
const data = {
id: 1,
description: '',
name: '',
type: '',
};
expect(validateSchema('#/components/schemas/roleSchema', data)).toBeUndefined();
expect(validateSchema('#/components/schemas/roleSchema', {})).toMatchSnapshot();
});
//# sourceMappingURL=role-schema.test.js.map