mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Changes
This commit is contained in:
21
node_modules/validator/test/exports.js
generated
vendored
Normal file
21
node_modules/validator/test/exports.js
generated
vendored
Normal file
@ -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