diff --git a/vim/UltiSnips/javascript-jasmine.snippets b/vim/UltiSnips/javascript-jasmine.snippets index 1046c36..77aec77 100644 --- a/vim/UltiSnips/javascript-jasmine.snippets +++ b/vim/UltiSnips/javascript-jasmine.snippets @@ -5,37 +5,37 @@ priority -50 # snippet des "Describe (js)" b -describe('${1:description}', () => { +describe('${1:description}', function() { $0 }); endsnippet snippet it "it (js)" b -it('${1:description}', () => { +it('${1:description}', function() { $0 }); endsnippet snippet bef "before each (js)" b -beforeEach(() => { +beforeEach(function() { $0 }); endsnippet snippet aft "after each (js)" b -afterEach(() => { +afterEach(function() { $0 }); endsnippet snippet befa "before all (js)" b -beforeAll(() => { +beforeAll(function() { $0 }); endsnippet snippet afta "after all (js)" b -afterAll(() => { +afterAll(function() { $0 }); endsnippet @@ -63,7 +63,7 @@ jasmine.stringMatching("${1:matcher}") endsnippet snippet ru "runs (js)" b -runs(() => { +runs(function() { $0 }); endsnippet diff --git a/vim/UltiSnips/javascript.snippets b/vim/UltiSnips/javascript.snippets index ee80f0e..c60cf6b 100644 --- a/vim/UltiSnips/javascript.snippets +++ b/vim/UltiSnips/javascript.snippets @@ -5,11 +5,47 @@ priority -30 snippet def "define an AMD module" define([ '${1:backbone}' -], ( - ${2:Backbone}) -) => { +], function( + ${2:Name}) +) { $0 } endsnippet +# Jasmine +snippet des "Describe (js)" b +describe('${1:description}', function() { + $0 +}); +endsnippet + +snippet it "it (js)" b +it('${1:description}', function() { + $0 +}); +endsnippet + +snippet bef "before each (js)" b +beforeEach(function() { + $0 +}); +endsnippet + +snippet aft "after each (js)" b +afterEach(function() { + $0 +}); +endsnippet + +snippet befa "before all (js)" b +beforeAll(function() { + $0 +}); +endsnippet + +snippet afta "after all (js)" b +afterAll(function() { + $0 +}); +endsnippet # vim:ft=snippets: