"use strict";
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 helpers_1 = require("../../../testUtils/helpers");
const __1 = require("..");
const index_1 = require("../../../index");
describe('<Heading />', () => {
    it('matches a snapshot', () => {
        const { container: { children: [heading5El], }, } = helpers_1.render(react_1.default.createElement(__1.Heading, { variant: "h5" }));
        expect(heading5El).toMatchSnapshot();
    });
    it('has correct lineHeight style for each variant', () => {
        for (const headingVariant in index_1.theme.headings) {
            const { container: { children: [headingEl], }, } = helpers_1.render(react_1.default.createElement(__1.Heading, { variant: headingVariant }));
            const lineHeight = (index_1.theme.headings[headingVariant].lineHeight ||
                index_1.theme.lineHeights.normal).toString();
            expect(headingEl).toHaveStyleRule('line-height', lineHeight);
        }
    });
});
//# sourceMappingURL=Heading.test.js.map