In this project, a web-based application that reads RSS feeds was provided. My job was to develop several test suites using Jasmine and ensure the application passes all the test requirements.
These instructions will get you a copy of the project up and running on your local machine
In order to run this app, you will need to have Node.js insalled on your machine. To know if you have Node.js:
- Run
node -vandnpm -von the command line - If you get an error, go a head and Install Node
- Clone this repo or download the repo's zip file
- Open the
index.htmlfile on your browser to run the app and the tests
These are the tests requirements that were provided:
- Write a test that loops through each feed in the
allFeedsobject and ensures it has a URL defined and that the URL is not empty. - Write a test that loops through each feed in the
allFeedsobject and ensures it has a name defined and that the name is not empty. - Write a new test suite named
"The menu". - Write a test that ensures the menu element is hidden by default.
- Write a test that ensures the menu changes visibility when the menu icon is clicked.
- Write a test suite named
"Initial Entries". - Write a test that ensures when the
loadFeedfunction is called and completes its work, there is at least a single.entryelement within the.feedcontainer. - Write a test suite named
"New Feed Selection". - Write a test that ensures when a new feed is loaded by the
loadFeedfunction that the content actually changes. - No test should be dependent on the results of another.
- Callbacks should be used to ensure that feeds are loaded before they are tested.
- Implement error handling for undefined variables and out-of-bound array access.
- When complete - all of your tests should pass.