Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Frontend_Testing.pdf

Rob Tarr
July 25, 2014
100

 Frontend_Testing.pdf

Rob Tarr

July 25, 2014
Tweet

Transcript

  1. describe "Bowling", ->! it "should score a 14", ->! frames

    = [ new Frame(3, 4), new Frame(3, 4) ]! game = new BowlingGame(frames)! expect(game.getTotalScore()).toEqual 14!
  2. module.exports = (grunt) ->! grunt.config "jasmine",! src: "dist/js/app.js"! options:! specs:

    "specs/js/*Spec.js"! helpers: "specs/js/*Helper.js"! vendor: ["jquery.min.js", "specs/lib/*.js"]! ! grunt.loadNpmTasks "grunt-contrib-jasmine"!