app-decorators
Version:
Collection of useful ES7 Decorators, writtin in ES6, that can be used for building webapps
30 lines (23 loc) • 906 B
JavaScript
System.register(['app-decorators/src/libs/element-to-function', '../../src/helpers/guid'], function (_export, _context) {
"use strict";
var _elementToFunc, guid;
return {
setters: [function (_appDecoratorsSrcLibsElementToFunction) {
_elementToFunc = _appDecoratorsSrcLibsElementToFunction.default;
}, function (_srcHelpersGuid) {
guid = _srcHelpersGuid.guid;
}],
execute: function () {
describe('guid', function () {
it('should generate uid', function () {
// test
var uid1 = guid();
var uid2 = guid();
uid1.should.match(/^[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+$/);
uid1.should.not.be.equal(uid2);
});
});
}
};
});
//# sourceMappingURL=guid.spec.js.map