Skip to content

Commit b52f64e

Browse files
committed
Add tests for boolean type validator
1 parent 230f98f commit b52f64e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/validators/type.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ var valid = require('../../lib/validators/type');
33
const str = 'Hello world';
44
const obj = {hello: 'world'};
55
const num = 42;
6+
const bool = true;
67

78
const types = {
89
string: str,
910
object: obj,
10-
number: num
11+
number: num,
12+
boolean: bool
1113
};
1214
const typesKeys = Object.keys(types);
1315

0 commit comments

Comments
 (0)