"use strict";

var _jsxRuntime = require("react/jsx-runtime");

var _enzyme = require("enzyme");

var _Heading = _interopRequireDefault(require("../Heading"));

var _HeadingModule = _interopRequireDefault(require("../Heading.module.css"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

describe('Heading Specs', function () {
  test('should render a Heading with content', function () {
    var content = 'Hello Heading!';
    var heading = (0, _enzyme.mount)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Heading["default"], {
      children: content
    }));
    var expected = content;
    var actual = heading.text();
    expect(actual).toBe(expected);
  });
  test('should add the showLine class', function () {
    var content = 'Hello Heading!';
    var heading = (0, _enzyme.mount)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Heading["default"], {
      showLine: true,
      children: content
    }));
    var expected = 1;
    var actual = heading.find(".".concat(_HeadingModule["default"].showLine)).length;
    expect(actual).toBe(expected);
  });
});