1
0
Fork 0
mirror of synced 2024-11-12 20:28:58 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/javascript-mocha.snippets
2017-02-11 14:01:38 +01:00

34 lines
803 B
Text

snippet des "describe('thing', () => { ... })" b
describe('${1:}', () => {
${0:${VISUAL}}
});
snippet it "it('should do', () => { ... })" b
it('${1:}', () => {
${0:${VISUAL}}
});
snippet xit "xit('should do', () => { ... })" b
xit('${1:}', () => {
${0:${VISUAL}}
});
snippet bef "before(() => { ... })" b
before(() => {
${0:${VISUAL}}
});
snippet befe "beforeEach(() => { ... })" b
beforeEach(() => {
${0:${VISUAL}}
});
snippet aft "after(() => { ... })" b
after(() => {
${0:${VISUAL}}
});
snippet afte "afterEach(() => { ... })" b
afterEach(() => {
${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});