Write a 4-5 number of unit tests for your application for any of the modules. This exercise will be evaluated not based on the complexity of the test cases but on the elegance of how it is written. You should have used dependency injection in your application, so mock the dependencies.
Angular version 17.2.0.
Run ng test
to execute the unit tests.
The Following Test Cases are created:
transforms "Abc" to "abc" ✅
transforms "ABC" to "abc" ✅
titletesting ✅
htmltesting ✅
should have the 'exercise2' title ✅
should create the app ✅
should render title ✅
#clicked() should toggle #isOn ✅