 _ = require 'underscore'
+Promise = require 'bluebird'
 S3Client = require '../../lib/services/s3client'
 
 CREDENTIALS =

      delete opt[key]
      client = -> new S3Client opt
      expect(client).toThrow new Error("Missing AWS '#{key}'")


  it 'should initialize with credentials', ->
    expect(@s3client).toBeDefined()
    expect(@s3client._ee).toBeDefined()
    expect(@s3client._knoxClient).toBeDefined()

  _.each ['key', 'secret', 'bucket'], (key) ->
