Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTutorial suggests a change in code, that makes the default tests fail #37652
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Description
When following "Tour of heroes" tutorial, I found out that tutorial suggests a change that immediately makes the tests fail. I found it, because i had
ng testcommand running, which turned red immediately after I introduced the change. The tutorial says nothing about the failing tests, nor saying how to fix it.What's the affected URL?**
https://angular.io/tutorial/toh-pt0
Reproduction Steps**
Follow the "Tour of heroes" tutorial
Expected vs Actual Behavior**
I would expect that if tutorial suggest to go with
ng new example(which creates default tests), and also suggests to change the structure of theapptemplate, then it should also mention this change in test.How to fix the tests, so they follow the tutorial:
Change this:
to this: