wix-style-react
Version:
wix-style-react
15 lines (12 loc) • 426 B
JavaScript
export { isClassExists, makeControlled } from 'wix-ui-test-utils/react-helpers';
export var findByHook = function findByHook(element, hook) {
return element.querySelector('[data-hook*="' + hook + '"]');
};
export var resolveIn = function resolveIn(timeout) {
return new Promise(function (resolve) {
setTimeout(function () {
resolve({});
}, timeout);
});
};
export var ASSET_PREFIX = 'http://localhost/';