This project tested ability to use a testing suite, like Jasmine, to validate code. Started with a Feed Reader App and were required to write test spec in Jasmine.
Testing is an important part of the development process and many organizations practice a standard of development known as "test-driven development". This is when developers write tests first, before they ever start developing their application. All the tests initially fail and then they start writing application code to make these tests pass.
Whether you work in an organization that uses test-driven development or in an organization that uses tests to make sure future feature development doesn't break existing features, it's an important skill to have!
To run the application: download and open index.html in the browser. The jasmine tests should automatically run and will appear at the bottom of the page.
The file for the jasmine tests are located in jasmine/spec/feedreader.js
Tests that are green have passed and red have failed. That's called Red-green Refactor
- tests to make sure that the allFeeds variable has been defined and that it is not empty.
- loops through each feed and determines if the URL is defined and not empty.
- loops through each feed and determines that each feed has a name and not empty.
- ensures the menu element is hidden by default.
- validates proper functioning of the hamburger menu toggle.
- tests that there is at least one entry element in feed container.
- tests for ensure that new content is loaded by loadFeed().
check live version feed test