Permalink
Browse files

Add test for Request.waitFor

  • Loading branch information...
1 parent 85fff3e commit 87be5dc0cf4b3bcaa080ceb8aac27d1ed9d0b3e2 Loren Segal committed Dec 7, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/request.spec.coffee
View
@@ -38,6 +38,11 @@ describe 'AWS.Request', ->
delete service.api.pagination
expect(service.makeRequest('mockMethod').isPageable()).toEqual(false)
+ describe 'waitFor', ->
+ it 'creates a ResourceWaiter object', ->
+ service.api.waiters = state: operation: 'mockMethod'
+ expect(service.waitFor('state'))
+
describe 'send', ->
it 'accepts an optional callback', ->
error = null; data = null

0 comments on commit 87be5dc

Please sign in to comment.