Skip to content

Commit

Permalink
add regression test for setMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Nov 21, 2014
1 parent a959240 commit e164858
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions regression/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,23 @@ describe('storage', function() {
});
});

describe('bucket metadata', function() {
it('should allow setting metadata on a bucket', function(done) {
var metadata = {
website: {
mainPageSuffix: 'http://fakeuri',
notFoundPage: 'http://fakeuri/404.html'
}
};

bucket.setMetadata(metadata, function(err, meta) {
assert.ifError(err);
assert.deepEqual(meta.website, metadata.website);
done();
});
});
});

describe('write, read, and remove files', function() {
before(function(done) {
var doneCalled = 0;
Expand Down

0 comments on commit e164858

Please sign in to comment.