You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112 |
- /* global process */
- /**
- * Returns a Promise resolved after {@code process.nextTick} with the option to advance Jasmine timers.
- *
- * @param {number} [advanceTimer] - the value to be passed to Jasmine clock's tick method.
- * @returns {Promise<void>}
- */
- export function nextTick(advanceTimer) {
- advanceTimer && jasmine.clock().tick(advanceTimer);
-
- return new Promise(resolve => process.nextTick(resolve));
- }
|