fix(fakeAsync): fix #1050, should only reset patched Date.now until fakeAsync exit #1051
fix(fakeAsync): fix #1050, should only reset patched Date.now until fakeAsync exit #1051mhevery merged 3 commits intoangular:masterfrom
Conversation
2eda56f to
1c99f72
Compare
1c99f72 to
6056400
Compare
6056400 to
fdd34af
Compare
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
1 similar comment
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
fdd34af to
bce6ae6
Compare
d161a7d to
d6af330
Compare
d6af330 to
f177bed
Compare
fakeAsyncTestZone should only
resetPatchDatewhen fakeAsync finish totally, not afteronInvoke.such as
in this code, there will be several
zone.runcall which will reset the patchedDate, and make tick not work properly to get the simulated Date. So we must make sure that the patchedDate not reset untilfakeAsync exit.
non resolved promise.thenfeature because it will affectangularcurrent cases.async/fakeAsyncwithZone.__load_patch.window.Date.prototypeto fix Regression: usage of date pipe in template of component tested using fakeAsync makes test fail in 0.8.21 #1064