]> code.delx.au - dotemacs/blobdiff - snippets/js-mode/jasmine-it-async
no need for willResolve now Jasmine supports returning promises
[dotemacs] / snippets / js-mode / jasmine-it-async
diff --git a/snippets/js-mode/jasmine-it-async b/snippets/js-mode/jasmine-it-async
new file mode 100644 (file)
index 0000000..0f3ed1b
--- /dev/null
@@ -0,0 +1,6 @@
+# name: jasmine-it-async
+# key: ita
+# --
+it('${1:does some thing}', async () => {
+    await ${0:Promise.resolve());
+});