"use strict";

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

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

var _enzyme = require("enzyme");

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

describe('Method', function () {
  it('displays the <Method> element', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      type: "get"
    }));
    expect(node.hasClass('Method_get')).toBe(true);
  });
  it('displays the <Method> at 40px', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      type: "get",
      width: 40
    }));
    expect(node.find('.Method').prop('style')).toHaveProperty('width', 40);
  });
});