disposable-email-domains
Version:
A list of [disposable email domains](http://en.wikipedia.org/wiki/Disposable_email_address) like `mailinator.com`. You can use it to detect or block disposable accounts in your signup process. Exact domain matches are found in [index.json](https://github.
18 lines (16 loc) • 449 B
JavaScript
const isFQDN = require('validator').isFQDN;
/*
Check if all the elements are valid domains
*/
module.exports = function (chai) {
chai.Assertion.addProperty('isFQDN', function () {
var obj = this._obj, _this = this;
obj.forEach(function(o){
_this.assert(
isFQDN(o)
, 'expected "' + o + '" to be a valid domain'
, 'expected "' + o + '" to not be all lowecase'
);
});
});
};