Dennisaa

JsLint01

Sep 5th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Jasmine functions...
  2. var expect, it, describe, Calc2, beforeEach, afterEach;
  3. // my function defined elsewhere..
  4. var Calc2;
  5.  
  6. describe("Calculation", function () {
  7.     'use strict';
  8.    
  9.     var calc;
  10.    
  11.     beforeEach(function () {
  12.         calc = new Calc2();
  13.     });
  14.    
  15.     afterEach(function () {
  16.         calc = null;
  17.     });
  18.    
  19.     it('should return the sum of 2 numbers when I call Add', function () {
  20.         expect(calc.Add(3, 3)).toBe(6);
  21.     });
  22. });
Advertisement
Add Comment
Please, Sign In to add comment