Add angular snippets.
Add two jasmine snippets for use with angular that prepoulate the "it" and "before" functions with "inject". Add an angular config snippet.
This commit is contained in:
parent
c17df8147c
commit
ec973080f4
19
UltiSnips/javascript_angular.snippets
Normal file
19
UltiSnips/javascript_angular.snippets
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
priority -50
|
||||||
|
|
||||||
|
snippet iti "it (js, inject)" b
|
||||||
|
it('${1:description}', inject(function($2) {
|
||||||
|
$0
|
||||||
|
}));
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet befi "before each (js, inject)" b
|
||||||
|
beforeEach(inject(function($1) {
|
||||||
|
$0
|
||||||
|
}));
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet acon "angular config" i
|
||||||
|
config(function($1) {
|
||||||
|
$0
|
||||||
|
});
|
||||||
|
endsnippet
|
Loading…
Reference in New Issue
Block a user