From 014409e303b3572c9d7074c5a09a07ca6ece69f3 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 8 Dec 2014 11:08:36 -0800 Subject: [PATCH] Update jasmine snippets --- vim/UltiSnips/coffee.snippets | 3 +++ vim/UltiSnips/javascript.snippets | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/vim/UltiSnips/coffee.snippets b/vim/UltiSnips/coffee.snippets index 8162294..2992b76 100644 --- a/vim/UltiSnips/coffee.snippets +++ b/vim/UltiSnips/coffee.snippets @@ -17,3 +17,6 @@ define [ ${2:Object} ) -> endsnippet +snippet it "jasmine test case" +it '→ $1', -> +endsnippet diff --git a/vim/UltiSnips/javascript.snippets b/vim/UltiSnips/javascript.snippets index 6f219cc..c5ebea1 100644 --- a/vim/UltiSnips/javascript.snippets +++ b/vim/UltiSnips/javascript.snippets @@ -24,18 +24,18 @@ setTimeout(function () { }, 0); endsnippet -snippet it "jasmine it" ! -it('→ $0', function () { +snippet it "it test case" ! +it('→ $1', function () { }); endsnippet -snippet desc "jasmine describe" ! -describe('→ $0', function () { +snippet desc "describe test case" ! +describe('→ $1', function () { }); endsnippet -snippet expect "jasmine expect" ! -expect(${0}).toBe(${1}); +snippet exp "expect" b +expect($1).toBe($2); endsnippet snippet umd "Universal Module Definition" b