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

Regression: usage of date pipe in template of component tested using fakeAsync makes test fail in 0.8.21 #1064

Closed
jnizet opened this issue Mar 31, 2018 · 1 comment · Fixed by #1051

Comments

@jnizet
Copy link

jnizet commented Mar 31, 2018

Here's a repo reproducing the issue: https://github.com/jnizet/zonejsbug.

The bug is illustrated in https://github.com/jnizet/zonejsbug/blob/master/src/app/app.component.spec.ts.

I'm not exactly sure of what causes the issue. I've had this bug in a real test of mine, and tried to reproduce it here with a relatively simple test. It appears that the bug is caused by the usage of the date pipe in the template of the component. The same test passes if version 0.8.20 is used (which can be tested by changing the version in package.json, re-executing yarn, then re-executing ng test).

@JiaLiPassion
Copy link
Collaborator

@jnizet , thank you for posting the issue, this has been fixed in #1051

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants