Skip to content

Commit 953690c

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent f567bab commit 953690c

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

packages/storage/src/reference.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,20 @@ export class Reference {
223223
args.validate('listAll', [], arguments);
224224
const accumulator = {
225225
prefixes: [],
226-
items: [],
226+
items: []
227227
};
228228
return this.listAllHelper(accumulator, null).then(() => accumulator);
229229
}
230230

231-
private async listAllHelper(accumulator: ListResult, pageToken?: string): Promise<void> {
232-
let opt: ListOptions = {
231+
private async listAllHelper(
232+
accumulator: ListResult,
233+
pageToken?: string
234+
): Promise<void> {
235+
let opt: ListOptions = {
233236
maxResults: 1,
234-
pageToken,
237+
pageToken
235238
};
236-
const nextPage = await this.list(opt);
239+
const nextPage = await this.list(opt);
237240
Array.prototype.push.apply(accumulator.prefixes, nextPage.prefixes);
238241
Array.prototype.push.apply(accumulator.items, nextPage.items);
239242
if (nextPage.nextPageToken) {

packages/storage/test/reference.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ describe('Firebase Storage > Reference', () => {
5757
const s = makeStorage('gs://test-bucket/this/ismyobject?hello');
5858
assert.equal(s.toString(), 'gs://test-bucket/this/ismyobject?hello');
5959
});
60-
it('doesn\'t URL-decode on a gs:// string', () => {
60+
it("doesn't URL-decode on a gs:// string", () => {
6161
const s = makeStorage('gs://test-bucket/%3F');
6262
assert.equal(s.toString(), 'gs://test-bucket/%3F');
6363
});
6464
it('ignores URL params and fragments on an http URL', () => {
6565
const s = makeStorage(
6666
`http://${DEFAULT_HOST}/v0/b/test-bucket/o/my/object.txt` +
67-
'?ignoreme#please'
67+
'?ignoreme#please'
6868
);
6969
assert.equal(s.toString(), 'gs://test-bucket/my/object.txt');
7070
});
@@ -78,7 +78,7 @@ describe('Firebase Storage > Reference', () => {
7878
it('ignores URL params and fragments on an https URL', () => {
7979
const s = makeStorage(
8080
`https://${DEFAULT_HOST}/v0/b/test-bucket/o/my/object.txt` +
81-
'?ignoreme#please'
81+
'?ignoreme#please'
8282
);
8383
assert.equal(s.toString(), 'gs://test-bucket/my/object.txt');
8484
});
@@ -92,7 +92,7 @@ describe('Firebase Storage > Reference', () => {
9292
});
9393

9494
describe('toString', () => {
95-
it('Doesn\'t add trailing slash', () => {
95+
it("Doesn't add trailing slash", () => {
9696
const s = makeStorage('gs://test-bucket/foo');
9797
assert.equal(s.toString(), 'gs://test-bucket/foo');
9898
});
@@ -177,7 +177,7 @@ describe('Firebase Storage > Reference', () => {
177177
});
178178
});
179179

180-
it('Doesn\'t send Authorization on null auth token', done => {
180+
it("Doesn't send Authorization on null auth token", done => {
181181
function newSend(
182182
xhrio: TestingXhrIo,
183183
url: string,
@@ -302,7 +302,7 @@ describe('Firebase Storage > Reference', () => {
302302
'storage/invalid-argument'
303303
);
304304
});
305-
it('doesn\'t throw on good metadata', () => {
305+
it("doesn't throw on good metadata", () => {
306306
const goodMetadata = {
307307
md5Hash: 'a',
308308
cacheControl: 'done',
@@ -489,14 +489,14 @@ describe('Firebase Storage > Reference', () => {
489489
});
490490

491491
describe('non-root operations', () => {
492-
it('put doesn\'t throw', () => {
492+
it("put doesn't throw", () => {
493493
assert.doesNotThrow(() => {
494494
child.put(new Blob(['a']));
495495
child.put(new Uint8Array(10));
496496
child.put(new ArrayBuffer(10));
497497
});
498498
});
499-
it('putString doesn\'t throw', () => {
499+
it("putString doesn't throw", () => {
500500
assert.doesNotThrow(() => {
501501
child.putString('raw', StringFormat.RAW);
502502
child.putString('aaaa', StringFormat.BASE64);
@@ -507,22 +507,22 @@ describe('Firebase Storage > Reference', () => {
507507
);
508508
});
509509
});
510-
it('delete doesn\'t throw', () => {
510+
it("delete doesn't throw", () => {
511511
assert.doesNotThrow(() => {
512512
child.delete();
513513
});
514514
});
515-
it('getMetadata doesn\'t throw', () => {
515+
it("getMetadata doesn't throw", () => {
516516
assert.doesNotThrow(() => {
517517
child.getMetadata();
518518
});
519519
});
520-
it('listAll doesn\'t throw', () => {
520+
it("listAll doesn't throw", () => {
521521
assert.doesNotThrow(() => {
522522
child.listAll();
523523
});
524524
});
525-
it('list doesn\'t throw', () => {
525+
it("list doesn't throw", () => {
526526
assert.doesNotThrow(() => {
527527
child.list();
528528
});
@@ -539,12 +539,12 @@ describe('Firebase Storage > Reference', () => {
539539
child.list({ maxResults: 4, pageToken: null });
540540
});
541541
});
542-
it('updateMetadata doesn\'t throw', () => {
542+
it("updateMetadata doesn't throw", () => {
543543
assert.doesNotThrow(() => {
544544
child.updateMetadata({} as Metadata);
545545
});
546546
});
547-
it('getDownloadURL doesn\'t throw', () => {
547+
it("getDownloadURL doesn't throw", () => {
548548
assert.doesNotThrow(() => {
549549
child.getDownloadURL();
550550
});
@@ -576,12 +576,12 @@ describe('Firebase Storage > Reference', () => {
576576
'storage/invalid-root-operation'
577577
);
578578
});
579-
it('listAll doesn\'t throws', () => {
579+
it("listAll doesn't throws", () => {
580580
assert.doesNotThrow(() => {
581581
root.listAll();
582582
});
583583
});
584-
it('list doesn\'t throws', () => {
584+
it("list doesn't throws", () => {
585585
assert.doesNotThrow(() => {
586586
root.list();
587587
});

0 commit comments

Comments
 (0)