"use strict";

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

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

var _enzyme = require("enzyme");

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

describe('Notification', function () {
  it('displays a Notification', function () {
    var node = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_["default"], null));
    expect(node.hasClass('Notification')).toBe(true);
  });
  it('displays a colorful Notification', function () {
    var node = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      color: "green"
    }));
    expect(node.hasClass('Notification_green')).toBe(true);
  });
  it('displays a dismiss button', function () {
    var node = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      dismissible: true
    }));
    expect(node.find('.Notification-Button')).toHaveLength(1);
  });
  it('displays an emoji', function () {
    var node = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      emoji: "\uD83E\uDD89"
    }));
    expect(node.find('.Notification-Emoji')).toHaveLength(1);
  });
  it('displays at bottom', function () {
    var node = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      position: "bottom"
    }));
    expect(node.hasClass('Notification_bottom')).toBe(true);
  });
});