Merge pull request #474 from craigp/additional_jasmine_snippets

Additional jasmine snippets for the following completions:
This commit is contained in:
Honza Pokorny 2014-10-29 15:10:29 -03:00
commit 51be0d408f

View File

@ -169,3 +169,16 @@ endsnippet
snippet noscw "expect was not called with (js)" b snippet noscw "expect was not called with (js)" b
expect(${1:target}).wasNotCalledWith(${2:arguments}); expect(${1:target}).wasNotCalledWith(${2:arguments});
endsnippet endsnippet
snippet ethbc "expect to have been called (js)" b
expect(${1:target}).toHaveBeenCalled();
endsnippet
snippet nthbc "expect not to have been called (js)" b
expect(${1:target}).not.toHaveBeenCalled();
endsnippet
snippet ethbcw "expect to have been called with (js)" b
expect(${1:target}).toHaveBeenCalledWith(${2:arguments});
endsnippet