Git Product home page Git Product logo

intro-to-js-and-jasmine-001's Introduction

Intro to Jasmine and JavaScript

Jasmine

Jasmine is Flatiron's (and many other developers) testing library of choice for JavaScript. It is modeled after RSpec, the de facto ruby testing library. Jasmine offers a robust domain specific language that is easy to use and follow. Its main use is for unit testing. In practice this means testing functions and objects in a program in isolation to assure they do what they're expected to.

In Jasmine, to make set of tests for a particular subject you set it apart by creating a describe function with the first argument as the subject, and the second and anonymous function. In the block of that anonymous function you can either go more specific with nested describe blocks or an it function. It the actual test; it takes a string as the first argument about what it is testing and an anonymous function that contains an expect function that compares your code to the expected outcome.

This lab is designed to get you comfortable with the syntax of Jasmine as well as JavaScript. All you need to do to complete it is make all the tests pass in the spec/intro-spec.js. That is the only file you will need to edit.

##Before You Start

Run Jasmine test suite:

$ learn  # runs only in the terminal
$ learn -b # runs also in the browser

Resources

View this lesson on Learn.co

intro-to-js-and-jasmine-001's People

Contributors

tsiege avatar deniznida avatar fs-lms-test-bot avatar sarogers avatar fislabstest avatar talum avatar victhevenot avatar joshuabamboo avatar

Watchers

James Cloos avatar cody 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.