Skip to content

Commit 3a70ef7

Browse files
merge public & private tests
1 parent 6db8b3a commit 3a70ef7

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

regression/storage.js

+6-12
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,13 @@ describe('storage', function() {
149149
});
150150
});
151151

152-
it('should make a bucket publicly readable', function(done) {
152+
it('should make a bucket public and private', function(done) {
153153
bucket.acl.makePublic(function(err, accessControl) {
154154
assert.equal(accessControl.role, storage.acl.READER_ROLE);
155155
assert.equal(accessControl.scope, 'allUsers');
156-
done();
157-
});
158-
});
159156

160-
it('should make a bucket private', function(done) {
161-
bucket.acl.makePrivate(done);
157+
bucket.acl.makePrivate(done);
158+
});
162159
});
163160

164161
it('should update an account', function(done) {
@@ -247,16 +244,13 @@ describe('storage', function() {
247244
});
248245
});
249246

250-
it('should make a file publicly readable', function(done) {
247+
it('should make a file public and private', function(done) {
251248
file.acl.makePublic(function(err, accessControl) {
252249
assert.equal(accessControl.role, storage.acl.READER_ROLE);
253250
assert.equal(accessControl.scope, 'allUsers');
254-
done();
255-
});
256-
});
257251

258-
it('should make a file private', function(done) {
259-
file.acl.makePrivate(done);
252+
file.acl.makePrivate(done);
253+
});
260254
});
261255
});
262256
});

0 commit comments

Comments
 (0)