Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[add] snippets

  • Loading branch information...
commit cc73641139c1d8b6b166c63a019cb9e6dd0e88f6 1 parent 2900dde
Lennart Melzer authored
14  ait().sublime-snippet
... ...
@@ -0,0 +1,14 @@
  1
+<snippet>
  2
+  <content><![CDATA[
  3
+it("should ${1:behave like}", function(done){
  4
+  ${2:// Add your behavior testing code here}
  5
+  // Make sure you call done() when finished
  6
+  done();
  7
+});
  8
+]]></content>
  9
+  <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
  10
+  <tabTrigger>ait</tabTrigger>
  11
+  <!-- Optional: Set a scope to limit where the snippet will trigger -->
  12
+  <scope>source.nodejs_mocha</scope>
  13
+  <description>Asynchronous it-Block</description>
  14
+</snippet>
11  describe().sublime-snippet
... ...
@@ -0,0 +1,11 @@
  1
+<snippet>
  2
+  <content><![CDATA[
  3
+describe("${1:a trait}", function(){
  4
+  ${2:// Add your setup and assertions here}
  5
+});
  6
+]]></content>
  7
+  <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
  8
+  <tabTrigger>describe</tabTrigger>
  9
+  <!-- Optional: Set a scope to limit where the snippet will trigger -->
  10
+  <scope>source.nodejs_mocha</scope>
  11
+</snippet>
11  it().sublime-snippet
... ...
@@ -0,0 +1,11 @@
  1
+<snippet>
  2
+  <content><![CDATA[
  3
+it("should ${1:behave like}", function(){
  4
+  ${2:// Add your behavior testing code here}
  5
+});
  6
+]]></content>
  7
+  <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
  8
+  <tabTrigger>it</tabTrigger>
  9
+  <!-- Optional: Set a scope to limit where the snippet will trigger -->
  10
+  <scope>source.nodejs_mocha</scope>
  11
+</snippet>

0 notes on commit cc73641

Please sign in to comment.
Something went wrong with that request. Please try again.