Skip to content

haithamsha/feed-reader-with-unit-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Overview

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!

Test Cases

-- Test allFeeds to make sure it is defined and it's length not 0.

-- Feed Url to make sure it is defined and it's length not undefined.

-- Name property of allFeeds array, test it to make sure it is defined and not be empty string.

-- Test menu to make sure it is hidden on document load and has CSS class menu-hidden.

-- Spy on menu click event to make sure it has been triggerd and toggling css class menu-hidden functionality works fine when triggerd and when triggerd again to close the menu.

-- Test the asynchronous function loadFeed to make sure it is success to get the data from the server and test it again to make sure the data has been binded successfully.

How to use.

Just run npm install so that install all dependances.

How to open the app.

You can host the app on a remote server or run it locally on your local host server. I recommeded to use vs code, so you can use live server plugin to run the app on your local host.

About

RSS API's reader.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published