"use strict";

var _react = require("@testing-library/react");
var _useResizeObserver = _interopRequireDefault(require("./useResizeObserver"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe("useResizeObserver", function () {
  it("should test", function () {
    var ref = {
      current: undefined
    };
    var _renderHook = (0, _react.renderHook)(function () {
        return (0, _useResizeObserver.default)(ref);
      }),
      result = _renderHook.result;
    expect(result.current).toBeUndefined();
  });
  it("should test real element", function () {
    var div = document.createElement("div");
    document.body.appendChild(div);
    var ref = {
      current: div
    };
    var _renderHook2 = (0, _react.renderHook)(function () {
        return (0, _useResizeObserver.default)(ref);
      }),
      result = _renderHook2.result;
    expect(result.current).toBeUndefined();
  });
});
//# sourceMappingURL=useResizeObserver.test.js.map