dotfiles/vim/snippets/vim-snippets/snippets/javascript-mocha.snippets
2018-04-05 13:06:54 +02:00

35 lines
803 B
Plaintext

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});