big-moving.ru/assets/vendor_components/popper/packages/test-utils/utils/then.js

7 lines
176 B
JavaScript
Raw Normal View History

2022-06-24 15:29:23 +05:00
export default function then(callback, delay = 100) {
setTimeout(callback, jasmine.THEN_DELAY);
jasmine.THEN_DELAY += delay;
}
beforeEach(() => (jasmine.THEN_DELAY = 0));