Skip to content

Commit ec97308

Browse files
committed
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.
1 parent c17df81 commit ec97308

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: UltiSnips/javascript_angular.snippets

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
priority -50
2+
3+
snippet iti "it (js, inject)" b
4+
it('${1:description}', inject(function($2) {
5+
$0
6+
}));
7+
endsnippet
8+
9+
snippet befi "before each (js, inject)" b
10+
beforeEach(inject(function($1) {
11+
$0
12+
}));
13+
endsnippet
14+
15+
snippet acon "angular config" i
16+
config(function($1) {
17+
$0
18+
});
19+
endsnippet

0 commit comments

Comments
 (0)