• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

sinon

Common sinon snippets
  • #snippets
  • #sinon
mokkabonna
0.4.0 158
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by