Vim snippets for UltiSnips with basic javascript testing syntax (mocha + jasmine) using modern ES6 syntax (right now a fat arrow () => {}
)
desc
- describe with filebasename as descriptiondescribe
- describe with verbosive descriptionit
- itbee
- beforeEachafe
- afterEachbefore
- beforeafter
- after
ebe
- expect(x).toBe(y)eeq
- expect(x).toEqual(y)ethre
- expect(x).toThr*owE**rror(y)
aeq
- assert.equaladeq
- assert.deepEqualafalse
- assert.isFalseatrue
- assert.isTrueathr
- assert.Throws
Using Vundle:
" install UltiSnips
Plugin 'SirVer/ultisnips'
"let g:UltiSnipsExpandTrigger="<C-J>" "(optional) CTRL-J instead of TAB to avoid conflicts with YCM
Plugin 'alexbyk/vim-ultisnips-js-testing'