ungleich-staticcms/assets/u/static/popper.js-1.16.0/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));