Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Jasmine functions...
- var expect, it, describe, Calc2, beforeEach, afterEach;
- // my function defined elsewhere..
- var Calc2;
- describe("Calculation", function () {
- 'use strict';
- var calc;
- beforeEach(function () {
- calc = new Calc2();
- });
- afterEach(function () {
- calc = null;
- });
- it('should return the sum of 2 numbers when I call Add', function () {
- expect(calc.Add(3, 3)).toBe(6);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment