¡@

Home 

2014/10/16 ¤W¤È 12:09:28

jquery Programming Glossary: this.view

How to test the done and fail Deferred Object by using jasmine

http://stackoverflow.com/questions/12080087/how-to-test-the-done-and-fail-deferred-object-by-using-jasmine

'submitForm' .andCallFake fakeFunction describe 'if the message is empty' function beforeEach function this.view. el.find '#message' .text '' this.view. el.find 'form' .submit it 'backendController.submitForm and fail Deferred Object.. fakeFunction describe 'if the message is empty' function beforeEach function this.view. el.find '#message' .text '' this.view. el.find 'form' .submit it 'backendController.submitForm and fail Deferred Object should be called' function expect submitFormSpy.. I test that fail Deferred Object is called describe 'if the message is not empty' function beforeEach function this.view. el.find '#message' .text 'some text' this.view. el.find 'form' .submit it 'backendController.submitForm should be called..