UNPKG

uniquid

Version:
15 lines (12 loc) 361 B
'use strict'; 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); }); });