ec973080f4
Add two jasmine snippets for use with angular that prepoulate the "it" and "before" functions with "inject". Add an angular config snippet.
20 lines
281 B
Plaintext
20 lines
281 B
Plaintext
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
|