Skip to content

Commit

Permalink
Add angular snippets.
Browse files Browse the repository at this point in the history
Add two jasmine snippets for use with angular that prepoulate the
"it" and "before" functions with "inject".  Add an angular config
snippet.
  • Loading branch information
ryanpineo committed Apr 21, 2014
1 parent c17df81 commit ec97308
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions UltiSnips/javascript_angular.snippets
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ec97308

Please sign in to comment.