Initial commit
This commit is contained in:
commit
ec49fedc45
1288 files changed
+226749
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
var assert = require('assert')
|
||||
, validator = require('../validator');
|
||||
|
||||
describe('Exports', function () {
|
||||
|
||||
it('should export validators', function () {
|
||||
assert.equal(typeof validator.isEmail, 'function');
|
||||
assert.equal(typeof validator.isAlpha, 'function');
|
||||
});
|
||||
|
||||
it('should export sanitizers', function () {
|
||||
assert.equal(typeof validator.toBoolean, 'function');
|
||||
assert.equal(typeof validator.toFloat, 'function');
|
||||
});
|
||||
|
||||
it('should export the version number', function () {
|
||||
assert.equal(validator.version, require('../package.json').version,
|
||||
'Version number mismatch in "package.json" vs. "validator.js"');
|
||||
});
|
||||
|
||||
});
|
||||
Reference in new issue
Block a user