sinon
Short snippets for sinon.js http://sinonjs.org/ for use in the atom editor.
Has the following snippets, submit PR for more.
sinon.spy
sinon.stub
sinon.mock
notCalled => sinon.assert.notCalled
called => sinon.assert.called
calledOnce => sinon.assert.calledOnce
calledTwice => sinon.assert.calledTwice
calledThrice => sinon.assert.calledThrice
callCount => sinon.assert.callCount
callOrder => sinon.assert.callOrder
calledOn => sinon.assert.calledOn
alwaysCalledOn => sinon.assert.alwaysCalledOn
calledWith => sinon.assert.calledWith
alwaysCalledWith => sinon.assert.alwaysCalledWith
neverCalledWith => sinon.assert.neverCalledWith
calledWithExactly => sinon.assert.calledWithExactly
alwaysCalledWithExactly => sinon.assert.alwaysCalledWithExactly
calledWithMatch => sinon.assert.calledWithMatch
alwaysCalledWithMatch => sinon.assert.alwaysCalledWithMatch
neverCalledWithMatch => sinon.assert.neverCalledWithMatch
threw => sinon.assert.threw
alwaysThrew => sinon.assert.alwaysThrew
sinon.match
sinon.match.any
sinon.match.defined
sinon.match.truthy
sinon.match.falsy
sinon.match.bool
sinon.match.number
sinon.match.string
sinon.match.object
sinon.match.func
sinon.match.array
sinon.match.regexp
sinon.match.date
sinon.match.same
sinon.match.typeOf
sinon.match.instanceOf
sinon.match.has
sinon.match.hasOwn
sinon.sandbox.create
sinon.fakeServer.create
sinon.fakeServerWithClock.create
sinon.useFakeXMLHttpRequest
sinon.useFakeTimers
sinon.expectation.create