           results.Items.should.have.property 'TotalResults'
           results.Items.should.have.property 'TotalPages'
 
-
   describe 'when credentials are invalid', ->
     client = amazonAffiliateApi.createClient awsTag: 'sfsadf', awsId: 'sfadf', awsSecret: 'fsg'
 

  describe 'when credentials are invalid', ->
    client = amazonAffiliateApi.createClient awsTag: 'sfsadf', awsId: 'sfadf', awsSecret: 'fsg'

    describe 'when no callback is passed', ->
      it 'should return an error', ->
        client.cartClear


  describe 'when credentials are valid', ->
    client = amazonAffiliateApi.createClient credentials

    beforeEach (done) ->
      # pause between tests, avoid getting yelled at by amazon
      setTimeout () ->
        done()
      , 500

    afterEach (done) ->
      client.cartClear
