source: pyenvjasmine/pyenvjasmine/envjasmine/specs/ajaxDemo.spec.js@ 19:ab5f65372038

Last change on this file since 19:ab5f65372038 was 19:ab5f65372038, checked in by Borja Lopez <borja@…>, 9 years ago

Imported latest envjasmine version, the initial import from darcs had the wrong version

File size: 387 bytes
Line 
1EnvJasmine.load(EnvJasmine.jsDir + "ajaxDemo.js");
2
3describe('greetUser', function () {
4 it('calls greeter on success', function () {
5 NS.greetUser(1);
6 spyOn(NS, 'greeter');
7 mostRecentAjaxRequest().response({
8 status: 200,
9 responseText: {"name":"Trevor"}
10 });
11 expect(NS.greeter).toHaveBeenCalledWith('Trevor');
12 });
13});
Note: See TracBrowser for help on using the repository browser.