Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

test function that call a function javascrip

it('should call the module bar immediately', function () {
  var barSpy = expect.spyOn(Foo.prototype, 'barModule');

  new Foo();

  expect(barSpy).toHaveBeenCalled();    
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #test #function #call #function #javascrip
ADD COMMENT
Topic
Name
2+6 =