Skip to content

alexbyk/vim-ultisnips-js-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

vim-ultisnips-js-testing

Vim snippets for UltiSnips with basic javascript testing syntax (mocha + jasmine) using modern ES6 syntax (right now a fat arrow () => {})

Snippets

  • desc - describe with filebasename as description
  • describe - describe with verbosive description
  • it - it
  • bee - beforeEach
  • afe - afterEach
  • before - before
  • after - after

Expect

  • ebe - expect(x).toBe(y)
  • eeq - expect(x).toEqual(y)
  • ethre - expect(x).toThr*owE**rror(y)

Assert

  • aeq - assert.equal
  • adeq - assert.deepEqual
  • afalse - assert.isFalse
  • atrue - assert.isTrue
  • athr - assert.Throws

Installation

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'

About

Vim ultisnips javascript snippets for mocha testing framework with modern es6 syntax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published