This commit is contained in:
parent
464e42ba1c
commit
cdbecea36d
@ -24,5 +24,7 @@ describe('test validate type schema object', () => {
|
|||||||
}).required()
|
}).required()
|
||||||
|
|
||||||
throwFunc(obj.validate({ name: 'asd' }))
|
throwFunc(obj.validate({ name: 'asd' }))
|
||||||
|
|
||||||
|
expect(throwFunc(obj.validate({ name: 123 }))).toThrow()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user