qpa-client/server/src/__tests__/event.spec.ts

11 lines
229 B
TypeScript
Raw Normal View History

2018-07-08 21:55:14 +02:00
import {UserEventSchema} from "../event";
2018-06-03 11:11:45 +02:00
describe('event', () => {
2018-09-14 17:24:01 +02:00
it('basic validation', () => {
const yesError = UserEventSchema.validate({
timeZone: 'what'
}).error
expect(yesError).toBeDefined()
})
2018-07-08 21:55:14 +02:00
})