"use strict";

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

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

var _enzyme = require("enzyme");

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

describe('EmojiPicker', function () {
  it('displays the <EmojiPicker> element', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], null));
    expect(node.hasClass('EmojiPicker')).toBe(true);
    expect(node.html()).toContain('<span aria-label="fox_face" role="img">🦊</span>');
    expect(node.html()).toContain('<span aria-label="rage,pout" role="img">😡</span>');
  });
  it('displays initial value', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      value: "\uD83E\uDD89"
    }));
    expect(node.state().value).toStrictEqual('🦉');
  });
  it('no emoji can be picked', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], null));
    node.find('button').at(0).simulate('click');
    expect(node.state().value).toStrictEqual('');
  });
});