Skip to content

Instantly share code, notes, and snippets.

@juanghurtado
Last active January 2, 2016 19:19
Show Gist options
  • Save juanghurtado/8349246 to your computer and use it in GitHub Desktop.
Save juanghurtado/8349246 to your computer and use it in GitHub Desktop.
it "triggers 'error' event on Device API error", (done) ->
mockDeviceStorageThrowingError()
certs = Bus.reqres.request "entities:certificates"
certs.on "error", ->
expect(1).to.equal 1
done()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment