mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 04:43:03 -05:00
1.8 KiB
1.8 KiB
RxJs race condition
Author: Thomas Laforge
Information
The goal of this application is to display a list of topics in a modal when a button is clicked. The application functions correctly. However, your tech lead has asked you to add tests and they are failing.
Statement
Correct your application to pass the test
Constraints:
- I can see you coming 🤣 => You CANNOT change the test (Test is working fine) 😳
- You CANNOT change the
fakeGetHttpTopicmethod. A delay has been added to fake a slow network.
Run the test
HEADLESS : npx nx component-test rxjs-race-condition
WATCH MODE : npx nx component-test rxjs-race-condition --watch
Submitting your work
- Fork the project
- clone it
- npm install
npx nx serve rxjs-race-condition- ...work on it
- Commit your work
- Submit a PR with a title beginning with Answer:14 that I will review and other dev can review.