virt2/assets/vendor_components/popper/packages/test-utils/utils/then.js

7 lines
176 B
JavaScript
Raw Normal View History

export default function then(callback, delay = 100) {
setTimeout(callback, jasmine.THEN_DELAY);
jasmine.THEN_DELAY += delay;
}
beforeEach(() => (jasmine.THEN_DELAY = 0));