jasmine,added new matcher anything, and partial matchers objectContaining,stringMatching and arrayContaining
This commit is contained in:
parent
ccbdbff0d5
commit
bc1637bde4
@ -44,6 +44,24 @@ snippet any "any (js)" b
|
|||||||
jasmine.any($1)
|
jasmine.any($1)
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet anyt "anything (js)" b
|
||||||
|
jasmine.anything()
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet objc "object containing (js)" b
|
||||||
|
jasmine.objectContaining({
|
||||||
|
${VISUAL}$0
|
||||||
|
});
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet arrc "array containing (js)" b
|
||||||
|
jasmine.arrayContaining([${1:value1}]);
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet strm "string matching (js)" b
|
||||||
|
jasmine.stringMatching("${1:matcher}")
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet ru "runs (js)" b
|
snippet ru "runs (js)" b
|
||||||
runs(function() {
|
runs(function() {
|
||||||
$0
|
$0
|
||||||
|
Loading…
Reference in New Issue
Block a user