From d79cc3702566b3b3304b6ec26fcbe08fed493f44 Mon Sep 17 00:00:00 2001 From: Chris Wilcox Date: Thu, 6 Feb 2020 11:06:24 -0800 Subject: [PATCH] fix: lint --- system-test/storage.ts | 10 +++++++--- test/file.ts | 7 ++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/system-test/storage.ts b/system-test/storage.ts index 856ae0422..fab922569 100644 --- a/system-test/storage.ts +++ b/system-test/storage.ts @@ -2262,12 +2262,16 @@ describe('storage', () => { tmp.file((err, tmpFilePath) => { assert.ifError(err); - const file = bucket.file(filename) - file.createReadStream() + const file = bucket.file(filename); + file + .createReadStream() .pipe(fs.createWriteStream(tmpFilePath)) .on('error', done) .on('response', (err, body, raw) => { - assert.strictEqual(raw.toJSON().headers['content-encoding'], undefined); + assert.strictEqual( + raw.toJSON().headers['content-encoding'], + undefined + ); }) .on('finish', () => { file.delete(done); diff --git a/test/file.ts b/test/file.ts index c1ac7e6ff..832ab4ef1 100644 --- a/test/file.ts +++ b/test/file.ts @@ -1293,7 +1293,7 @@ describe('File', () => { describe('validation', () => { const data = 'test'; - let fakeValidationStream: stream.Stream & {'test': Function}; + let fakeValidationStream: stream.Stream & {test: Function}; beforeEach(() => { file.metadata.mediaLink = 'http://uri'; @@ -1306,10 +1306,7 @@ describe('File', () => { callback(); }; - fakeValidationStream = Object.assign( - through(), - {test: () => true}, - ); + fakeValidationStream = Object.assign(through(), {test: () => true}); hashStreamValidationOverride = () => { return fakeValidationStream; };