"use strict";

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

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

var _dom = require("../dom");

describe('renderToContainer', function () {
  var wrapper = document.createElement('div');
  (0, _dom.render)( /*#__PURE__*/_react.default.createElement("span", null), wrapper);
  test('insert', function () {
    expect(wrapper.querySelector('span')).toBeInstanceOf(HTMLElement);
  });
  test('unmount', function () {
    (0, _dom.unmount)(wrapper);
    expect(wrapper.querySelector('span')).toBeNull();
  });
});