isvalid 4.1.16 → 4.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/test/formalize.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isvalid",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.18",
|
|
4
4
|
"description": "Async JSON validation library for node.js.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"url": "https://github.com/trenskow"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@trenskow/merge": "^0.1.
|
|
45
|
+
"@trenskow/merge": "^0.1.28"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/test/formalize.js
CHANGED
|
@@ -207,5 +207,8 @@ describe('schema', function() {
|
|
|
207
207
|
.to.throw(SchemaError)
|
|
208
208
|
.with.property('message', 'Only case types: `camel`, `domain`, `http`, `kebab`, `pascal`, `snake`, `title` are supported.');
|
|
209
209
|
});
|
|
210
|
+
it ('should throw error if string match is not a regular expression', () => {
|
|
211
|
+
expect(f({ type: String, match: 'test' })).to.throw(SchemaError);
|
|
212
|
+
});
|
|
210
213
|
});
|
|
211
214
|
});
|