UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

14 lines 509 B
import { validateSchema } from '../validate.js'; test('userSchema', () => { const data = { id: 1, username: 'admin', imageUrl: 'avatar', seenAt: '2022-06-27T12:19:15.838Z', loginAttempts: 0, createdAt: '2022-04-08T10:59:25.072Z', }; expect(validateSchema('#/components/schemas/userSchema', {})).not.toBeUndefined(); expect(validateSchema('#/components/schemas/userSchema', data)).toBeUndefined(); }); //# sourceMappingURL=user-schema.test.js.map