0
0

random-uniq.js 319 B

1234567891011121314
  1. 'use strict';
  2. var isValidFormat = RegExp.prototype.test.bind(/^[a-z0-9]+$/);
  3. module.exports = function (t, a) {
  4. a(typeof t(), 'string');
  5. a.ok(t().length > 7);
  6. a.not(t(), t());
  7. a.ok(isValidFormat(t()));
  8. a.ok(isValidFormat(t()));
  9. a.ok(isValidFormat(t()));
  10. a.ok(isValidFormat(t()));
  11. a.ok(isValidFormat(t()));
  12. };