Skip to content
Browse files

Add QUnit snippets

  • Loading branch information...
1 parent fe5a8a0 commit 44b290d1d097b2f4024d622b70a791e53e8f0d5a @gyoshev committed Feb 29, 2012
Showing with 27 additions and 0 deletions.
  1. +11 −0 snippets/html.snippets
  2. +16 −0 snippets/javascript.snippets
View
11 snippets/html.snippets
@@ -0,0 +1,11 @@
+snippet blank
+ <!doctype html>
+ <html>
+ <head>
+ <meta charset="utf-8" />
+ <title>${1}</title>
+ </head>
+ <body>
+ ${2}
+ </body>
+ </html>
View
16 snippets/javascript.snippets
@@ -0,0 +1,16 @@
+# QUnit test
+snippet qt
+ test("${1:test name}", function() {
+ ${2}
+ });
+# QUnit module
+snippet qmod
+ module("${1:module name}", {
+ setup: function() {
+ },
+ teardown: function() {
+ }
+ });
+# Function
+snippet f
+ function(${1}) {${2}}

0 comments on commit 44b290d

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