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.
1234567891011121314 |
- /* 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?: number): Promise<void> {
- if (advanceTimer) {
- jasmine.clock().tick(advanceTimer);
- }
-
- return new Promise(resolve => process.nextTick(resolve));
- }
|