Additional jasmine snippets for the following completions:

* toHaveBeenCalled
* toHaveBeenCalledWith
* not.toHaveBeenCalled
This commit is contained in:
Craig Paterson 2014-10-29 16:21:34 +02:00
parent 3c15b60322
commit dd8afe92c7

View File

@ -169,3 +169,16 @@ endsnippet
snippet noscw "expect was not called with (js)" b
expect(${1:target}).wasNotCalledWith(${2:arguments});
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