Giter VIP home page Giter VIP logo

feed-test's Introduction

Udacity Front-end Nanodegree Project - Feed Reader Testing

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.

Why this Project?

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!

Getting Started

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

The tests:

  1. tests to make sure that the allFeeds variable has been defined and that it is not empty.
  2. loops through each feed and determines if the URL is defined and not empty.
  3. loops through each feed and determines that each feed has a name and not empty.
  4. ensures the menu element is hidden by default.
  5. validates proper functioning of the hamburger menu toggle.
  6. tests that there is at least one entry element in feed container.
  7. tests for ensure that new content is loaded by loadFeed().

check live version feed test

Feed Reader Test

feed-test's People

Contributors

ruhanrk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.