1
0
Fork 0
mirror of synced 2024-11-13 20:58:57 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/javascript-mocha.snippets
2021-06-30 12:00:07 -05:00

34 lines
803 B
Text
Executable file

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