From cdbecea36d61c1af7f46524647e8cbe3c949c9cf Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 10 Jun 2020 14:15:02 +0000 Subject: [PATCH] [chore] add test set --- types/object.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/object.test.js b/types/object.test.js index 4e8cce8..2c9a573 100644 --- a/types/object.test.js +++ b/types/object.test.js @@ -24,5 +24,7 @@ describe('test validate type schema object', () => { }).required() throwFunc(obj.validate({ name: 'asd' })) + + expect(throwFunc(obj.validate({ name: 123 }))).toThrow() }) })