Skip to content

Instantly share code, notes, and snippets.

@julianlconnor
Created June 27, 2013 21:46
Show Gist options
  • Save julianlconnor/5880688 to your computer and use it in GitHub Desktop.
Save julianlconnor/5880688 to your computer and use it in GitHub Desktop.
#586 Test
it 'should handle fs.stat errors', (done) ->
list = new m.List patterns('/some/*.js'), [], emitter, preprocessMock
sinon.stub(fs, "stat").yields([new Error(), null])
expect ->
refreshListAndThen()
done()
.to.not.throw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment