@watheia/pwa.sections.hybrid-homepage.build-together
Version:
20 lines • 1.07 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const react_2 = require("@testing-library/react");
const chai_1 = require("chai");
const build_together_composition_1 = require("./build-together.composition");
it("should render correctly", () => {
const { getByTestId } = react_2.render(react_1.default.createElement(build_together_composition_1.BuildTogetherExample, null));
const rendered = getByTestId("test-build");
chai_1.expect(rendered).to.exist;
});
it("should render h2 element", () => {
const { getByText } = react_2.render(react_1.default.createElement(build_together_composition_1.BuildTogetherExample, null));
const rendered = getByText("Continuously release and integrate component updates. Innovate more.");
chai_1.expect(rendered.tagName).to.be.equal("H2");
});
//# sourceMappingURL=build-together.spec.js.map