Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Jasmine functions...
- var expect, it, describe, beforeEach, afterEach;
- // my function defined elsewhere..
- var Employee;
- describe("Employee", function () {
- 'use strict';
- var emp;
- beforeEach(function () {
- emp = new Employee();
- emp.Add("Freda Whatnot", 2000);
- });
- afterEach(function () {
- emp = null;
- });
- it('should hold name details', function () {
- expect(emp.GetName()).toBe("Freda Whatnot");
- });
- it('should hold salary details', function () {
- expect(emp.GetSalary()).toBe(2000);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement