diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-28 12:24:01 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-28 12:24:01 +0100 |
| commit | 823302458ec6c53455a3f34674415c43ce6a3187 (patch) | |
| tree | 92168b44b01f5b2236b7cdf331e227c4790431ee /snippets/javascript-mocha.snippets | |
| parent | 9ea6111717518625cbd28a020493ec06610ff01e (diff) | |
Added snippets directory
Diffstat (limited to 'snippets/javascript-mocha.snippets')
| -rw-r--r-- | snippets/javascript-mocha.snippets | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/snippets/javascript-mocha.snippets b/snippets/javascript-mocha.snippets new file mode 100644 index 0000000..180555f --- /dev/null +++ b/snippets/javascript-mocha.snippets @@ -0,0 +1,34 @@ +snippet des "describe('thing', function() { ... })" b + describe('${1:}', function() { + ${0:${VISUAL}} + }); +snippet it "it('should do', function() { ... })" b + it('${1:}', function() { + ${0:${VISUAL}} + }); +snippet xit "xit('should do', function() { ... })" b + xit('${1:}', function() { + ${0:${VISUAL}} + }); +snippet bef "before(function() { ... })" b + before(function() { + ${0:${VISUAL}} + }); +snippet befe "beforeEach(function() { ... })" b + beforeEach(function() { + ${0:${VISUAL}} + }); +snippet aft "after(function() { ... })" b + after(function() { + ${0:${VISUAL}} + }); +snippet afte "afterEach(function() { ... })" b + afterEach(function() { + ${0:${VISUAL}} + }); +snippet exp "expect(...)" b + expect(${1:})${0}; +snippet expe "expect(...).to.equal(...)" b + expect(${1:}).to.equal(${0}); +snippet expd "expect(...).to.deep.equal(...)" b + expect(${1:}).to.deep.equal(${0}); |
