UNPKG

baseui

Version:

A React Component library implementing the Base design language

37 lines (34 loc) 808 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /* Copyright (c) Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ const destroy = jest.fn(); const mock = jest.fn().mockImplementation((anchor, popover, options) => { const onPopperUpdate = options.modifiers.applyReactStyle.fn; return { options, destroy, _callOnPopperUpdate: function () { onPopperUpdate({ offsets: { popper: { top: 10, left: 10 }, arrow: { top: 10, left: 10 } }, placement: 'left-start' }); } }; }); var _default = exports.default = mock;