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:
Ryan Pineo 2014-04-21 14:07:28 -04:00
parent c17df8147c
commit ec973080f4

View 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