git clone 'git://'

Mocha Snippets

Build Status

tldr; M-x package-install mocha-snippets

I like Mocha, and I use it a lot. As such, I have a bunch of snippets that I've developed for it to make working with tests faster.

It contains snippets for both coffee-mode and js-mode


desc → describe block

bef → beforeEach block

before → before block

aft → afterEach block

after → after block

it → it block

For both setup and teardown, the short forms bef and aft have been given to beforeEach and afterEach respectively, since those are more commonly used (and if they aren't, then perhaps they shoud be)