Skip to content

Commit

Permalink
Add test for error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Dec 22, 2012
1 parent 2121957 commit eefb8a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/usb.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ describe 'Device', ->
assert.ok(e == undefined, e)
done()

it 'should signal errors', (done) ->
inEndpoint.transfer 1, (d, e) ->
assert.equal e, usb.LIBUSB_TRANSFER_OVERFLOW
assert.equal d, undefined
done()

it 'should be a readableStream', (done) ->
pkts = 0

Expand Down

0 comments on commit eefb8a4

Please sign in to comment.