text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  var React = require("react");
  var commonTests_1 = require("test/specs/commonTests");
  var Image_1 = require("src/components/Image/Image");
  var utils_1 = require("test/utils");
  describe('Image', function () {
      commonTests_1.isConformant(Image_1.Image, {
          testPath: __filename,
          constructorName: 'Image',
      });
      describe('accessibility', function () {
          commonTests_1.handlesAccessibility(Image_1.Image, {
              defaultRootRole: undefined,
          });
          describe('aria-hidden', function () {
              test('is set to true, if alt attribute is not defined', function () {
                  var renderedComponent = utils_1.mountWithProviderAndGetComponent(Image_1.Image, React.createElement(Image_1.Image, null));
                  expect(commonTests_1.getRenderedAttribute(renderedComponent, 'aria-hidden', '')).toBe('true');
              });
              test('is not set, if alt attribute is defined', function () {
                  var renderedComponent = utils_1.mountWithProviderAndGetComponent(Image_1.Image, React.createElement(Image_1.Image, { alt: "any alt description" }));
                  expect(commonTests_1.getRenderedAttribute(renderedComponent, 'aria-hidden', '')).toBe(undefined);
              });
          });
      });
  });
  