This is the final project of the Front End Nanodegree and we have to provide a test suite that would run against the provided application. The required tests for this project must be written using the Jasmine framework and should test the RSS feed, RSS feed properties, menu default state and menu hiding/showing. All tests should be independent of one another and they should all pass.
To load the app, download a copy of the project to your local machine and open the file index.html with your browser. If all tests pass, you should see Jasmine's output showing the number of specs that ran with 0 failures, on a green background. Any failure, underlined by a red background, reports that there were tests that did not pass.
- Jasmine - Framework for testing JavaScript code
- jQuery - A JavaScript library for simpler HTML manipulation and event handling
- Daniele Erbì - daniel-234
The code will run several tests on app.js and the results will be displayed.
This project is licensed under the MIT License - see the LICENSE.md file for details
- I relied on this answer in Stackoverflow to have a hint on how to treat the first looping test:
- Stackoverflow - Loop through it() in Jasmine describes 'spec not found'
- I relied on an answer in the Discussion Forums to write a test that ensures the menu element is hidden by default (i.e. has a certain class):
- Udacity Discussion Forums - Menu visibility test
- This discussion on the Udacity Forums helped me write the test for the menu icon behavior on click events:
- Udacity Discussion Forums - Testing CSS Transitions
- This question on the Discussion Forums with the suggestion from a reviewer helped me to clarify what the rubric was asking for the last spec:
- Udacity Discussion Forums - I am stuck with last spec, please help!