UNPKG

@storefront/testing

Version:

Test modules for working with StoreFront components

30 lines 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (function (_a) { var expect = _a.expect; return ({ itShouldBeConfigurable: function (clazz) { describe('@configurable', function () { it('should set configurable to be true', function () { expect(clazz[Symbol.for('tag_description')].metadata.configurable).to.be.true; }); }); }, itShouldProvideAlias: function (clazz, aliasName) { describe('@provide', function () { it('should provide alias', function () { expect(clazz[Symbol.for('tag_description')].metadata.provides).to.have.ownProperty(aliasName); }); }); }, itShouldConsumeAlias: function (clazz, aliasName) { describe('@consume', function () { it('should consume alias', function () { expect(clazz[Symbol.for('tag_description')].metadata.consumes).to.include(aliasName); }); }); } }); }); //# sourceMappingURL=tests.js.map //# sourceMappingURL=tests.js.map