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

7 lines
176 B
JavaScript
Executable File

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