"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var _react = _interopRequireDefault(require("react"));

var _enzyme = require("enzyme");

var _ = _interopRequireDefault(require("."));

describe('HTTPStatus', function () {
  it('displays a colorful HTTP status code', function () {
    var nodes = [(0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      status: 102
    })), (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      status: 200
    })), (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      status: 301
    })), (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      status: 404
    })), (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      status: 503
    }))];
    nodes.forEach(function (el) {
      return expect(el.hasClass('HTTPStatus')).toBe(true);
    });
  });
});