@iapps/utils
Version:
A list of useful utilitites to be used for javascript and typescript developer
15 lines (13 loc) • 514 B
JavaScript
const assert = require('assert');
const UUID = require('./utils/index');
const keyword = 'cainamist';
const keyLength = 'plvEXsahcuJ';
const checker = keyword + keyLength;
describe('UUID', function() {
describe("UUID(keyword, keyLength)", function() {
it("It should return the uuid with like this " + keyword + "_" + keyLength, function() {
const result = UUID.getUid(keyword, 50);
assert.equal(result.startsWith(keyword), checker.startsWith(keyword));
});
});
});