Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

fix(spec): fix #760, fakeAsyncTestSpec should handle microtask with additional args#762

Merged
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:issue-760
May 2, 2017
Merged

fix(spec): fix #760, fakeAsyncTestSpec should handle microtask with additional args#762
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:issue-760

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Collaborator

fix #760.

MicroTask callback may have additional arguments,
such as

process.nextTick(() => {...}, arg1, arg2);

fakeAsyncTestSpec should be able to send those args(arg1, arg2) to the original nextTick function
correctly.

@mhevery mhevery merged commit f8d17ac into angular:master May 2, 2017
@JiaLiPassion JiaLiPassion deleted the issue-760 branch May 6, 2017 04:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fakeAsync in node throws TypeError: Cannot read property 'length' of undefined

3 participants