Skip to content

Commit

Permalink
cleaning up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Hall committed Jun 1, 2015
1 parent f2655dd commit bc98e02
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,6 @@ describe('S3rver Tests', function () {
});
});

// it('should create five buckets', function (done) {
// async.eachSeries(buckets, function (bucket, callback) {
// s3Client.createBucket({Bucket: bucket}, function (err) {
// if (err) {
// return callback(err);
// }
// callback(null);
// });
// }, function (err) {
// if (err) {
// return done(err);
// }
// done();
// });
// });

it('should fetch fetch five buckets', function (done) {
s3Client.listBuckets(function (err, buckets) {
if (err) {
Expand Down Expand Up @@ -218,18 +202,11 @@ describe('S3rver Tests', function () {

s3Client.putObject(params, function (err, data) {
if (err) return done(err);
// /[a-fA-F0-9]{32}/.test(data.ETag).should.equal(true);
// if (err) {
// return done(err);
// }
// done();

s3Client.getObject({Bucket: buckets[0], Key: 'jquery'}, function (err, object) {
if (err) {
return done(err);
}
debugger;
// object.ETag.should.equal(md5(data));
object.ContentLength.should.equal(stats.size.toString());
object.ContentEncoding.should.equal('gzip');
object.ContentType.should.equal('application/javascript');
Expand Down

0 comments on commit bc98e02

Please sign in to comment.