Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox committed Feb 6, 2020
1 parent e6991d7 commit d79cc37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 7 additions & 3 deletions system-test/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 2 additions & 5 deletions test/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -1306,10 +1306,7 @@ describe('File', () => {
callback();
};

fakeValidationStream = Object.assign(
through(),
{test: () => true},
);
fakeValidationStream = Object.assign(through(), {test: () => true});
hashStreamValidationOverride = () => {
return fakeValidationStream;
};
Expand Down

0 comments on commit d79cc37

Please sign in to comment.