diff --git a/docker-compose.yml b/docker-compose.yml index 44fac00..1170d43 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ dev: - image: starefossen/iojs-imagemagick:2-6 + image: starefossen/iojs-imagemagick:latest working_dir: /usr/src/app volumes: - ".:/usr/src/app" diff --git a/test/suite.coffee b/test/suite.coffee index 20f2eff..8cd0939 100644 --- a/test/suite.coffee +++ b/test/suite.coffee @@ -97,7 +97,7 @@ describe 'Upload', -> assert.equal upload.opts.url, 'https://s3-my-region-1.amazonaws.com/b/' it 'sets custom url', -> - upload = new Upload 'myBucket', url: 'http://cdn.app.com/' + upload = new Upload 'b', url: 'http://cdn.app.com/' assert.equal upload.opts.url, 'http://cdn.app.com/' it 'connects to AWS S3 using environment variables', (done) -> @@ -105,9 +105,7 @@ describe 'Upload', -> upload = new Upload process.env.AWS_BUCKET_NAME - upload.s3.headBucket upload.opts.aws.params, (err, data) -> - assert.ifError err - done() + upload.s3.headBucket upload.opts.aws.params, done it 'connects to AWS S3 using constructor options', (done) -> @timeout 10000 @@ -116,9 +114,7 @@ describe 'Upload', -> accessKeyId: process.env.AWS_ACCESS_KEY_ID secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY - upload.s3.headBucket upload.opts.aws.params, (err, data) -> - assert.ifError err - done() + upload.s3.headBucket upload.opts.aws.params, done describe '#_getRandomPath()', -> it 'returns a new random path', ->