uniquid
Version:
Unique ID generator
15 lines (12 loc) • 361 B
JavaScript
var assert = require('assert');
var uniquid = require('./');
describe('uniquid', function() {
it('should return string', function() {
assert(typeof uniquid() === 'string');
assert(typeof uniquid('user_') === 'string');
});
it('should start with `user_`', function() {
assert(uniquid('user_').indexOf('user_') === 0);
});
});
;