Skip to content

Commit cf5197f

Browse files
committed
ctp
1 parent a03e6d3 commit cf5197f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/crashes.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const assert = require('assert');
2+
3+
const Validator = require('../index');
4+
5+
let r = {};
6+
7+
describe('crash test', function () {
8+
9+
describe('#clousers and hex', function () {
10+
11+
it('should return true', async () => {
12+
13+
let v = new Validator({ name: function () {}, tape: 0x023 }, { name: 'required', tape: 'required|integer' });
14+
15+
let matched = await v.check();
16+
17+
assert.equal(matched, true);
18+
19+
});
20+
21+
});
22+
});

0 commit comments

Comments
 (0)