From ab16f5f9b3d49cfbdd4e63ba42b0d1ae865fdd9c Mon Sep 17 00:00:00 2001 From: James Bunton Date: Tue, 7 Nov 2017 14:40:50 +1100 Subject: [PATCH] jasmine async snippets --- snippets/js-mode/jasmine-afterEach-willResolve-async | 6 ++++++ snippets/js-mode/jasmine-beforeEach-willResolve-async | 6 ++++++ snippets/js-mode/jasmine-it-willResolve-async | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 snippets/js-mode/jasmine-afterEach-willResolve-async create mode 100644 snippets/js-mode/jasmine-beforeEach-willResolve-async create mode 100644 snippets/js-mode/jasmine-it-willResolve-async diff --git a/snippets/js-mode/jasmine-afterEach-willResolve-async b/snippets/js-mode/jasmine-afterEach-willResolve-async new file mode 100644 index 0000000..831bf39 --- /dev/null +++ b/snippets/js-mode/jasmine-afterEach-willResolve-async @@ -0,0 +1,6 @@ +# name: jasmine-afterEach-willResolve-async +# key: aea +# -- +afterEach(willResolve(async () => { + await ${0:Promise.resolve()); +})); diff --git a/snippets/js-mode/jasmine-beforeEach-willResolve-async b/snippets/js-mode/jasmine-beforeEach-willResolve-async new file mode 100644 index 0000000..0a2cfcc --- /dev/null +++ b/snippets/js-mode/jasmine-beforeEach-willResolve-async @@ -0,0 +1,6 @@ +# name: jasmine-beforeEach-willResolve-async +# key: bea +# -- +beforeEach(willResolve(async () => { + await ${0:Promise.resolve()); +})); diff --git a/snippets/js-mode/jasmine-it-willResolve-async b/snippets/js-mode/jasmine-it-willResolve-async new file mode 100644 index 0000000..da232fe --- /dev/null +++ b/snippets/js-mode/jasmine-it-willResolve-async @@ -0,0 +1,6 @@ +# name: jasmine-it-willResolve-async +# key: ita +# -- +it('${1:does some thing}', willResolve(async () => { + await ${0:Promise.resolve()); +})); -- 2.39.2