UNPKG

app-decorators

Version:

Collection of useful ES7 Decorators, writtin in ES6, that can be used for building webapps

34 lines (26 loc) 1.32 kB
System.register(['app-decorators/src/libs/element-to-function', '../../src/libs/element-to-function'], function (_export, _context) { "use strict"; var _elementToFunc, elementToFunction; return { setters: [function (_appDecoratorsSrcLibsElementToFunction) { _elementToFunc = _appDecoratorsSrcLibsElementToFunction.default; }, function (_srcLibsElementToFunction) { elementToFunction = _srcLibsElementToFunction.default; }], execute: function () { describe('elementToFunction', function () { it('should return same class when its an Function', function () { elementToFunction(HTMLElement).should.have.property('prototype'); elementToFunction(HTMLElement).should.be.Function(); elementToFunction(HTMLElement).should.be.equal(HTMLElement); }); it('should make object to Function with prototype', function () { var elementObject = {}; elementToFunction(elementObject).should.have.property('prototype'); elementToFunction(elementObject).should.be.Function(); }); }); } }; }); //# sourceMappingURL=element-to-function.spec.js.map