Coder Social home page Coder Social logo

feed-reader's Introduction

Feed Reader Testing project

A project from the Front-End Web Developer Nanodegree in Udacity. It is about to write a number of tests against a pre-existing application with Jasmine, to test the underlying business logic of the application as well as the event handling and DOM manipulation.

To run the application


  1. Clone a copy of the git repo by running:

    git clonehttps://github.com/primer101/Feed-Reader.git

  2. Open index.html in your browser to see the working tests.

The testing code is in /jasmine/spec/feedreader.js.

Live Demo in Feed Reader

Tests implemented


  • RSS Feeds:
    • 'are defined': tests that a array the feed objects (allFeeds) is defined.
    • 'should have an URL defined ': tests that allFeeds objects have an URL property and it is not empty.
    • 'should have an name defined ': tests that allFeeds objects have an name property and it is not empty.
  • The menu:
    • 'should be hidden by default': ensures the menu element is hidden (.menu-hidden class) by default.
    • 'should toggle the visibility when clicked': ensures the menu toggle visibility when the menu icon is clicked.
    • items templates:
      • 'should be parsed well': tests the parsing of the Handlebars template for menu items.
  • Initial Entries:
    • 'should be an entry at least': ensures that, when the loadFeed function is called and completes its work, there is at least an .entry element within the .feed container.
    • 'should show the correct information': the parsing of the Handlebars template for feed entries load the correct information.
  • New Feed Selection:
    • 'should change with a new source feed': ensures that, when a new and different feed is loaded by the loadFeed function, the content actually changes.

Disclaimer


The project was build from a starter code from Udacity, Inc..

"Nanodegree" is a registered trademark of Udacity. © 2011–2018 Udacity, Inc.

Copyright (c) 2018 Leonardo Daudinot and Udacity, Inc

Released under the MIT License and the Terms of Service of GitHub.

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.