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