"use strict";

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

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

var _enzyme = require("enzyme");

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

describe('MetricsPricingWidget', function () {
  it('displays the <MetricsPricingWidget> element', function () {
    var node = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_["default"], null));
    expect(node.getDOMNode().classList).toContain('MetricsPricingWidget');
  });
  it('should render select options if prop labels enabled', function () {
    var props = {
      labels: {
        l1: '',
        l2: ''
      }
    };
    var node = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_["default"], props));
    var option = node.find('option');
    expect(option.exists()).toBe(true);
  });
});