Skip to content

Commit

Permalink
fix(deps): pin TypeScript below 3.7.0 (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored and callmehiphop committed Dec 5, 2019
1 parent ee9826a commit e0b91fb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-speech/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"prettier": "^1.13.5",
"sinon": "^7.0.0",
"ts-loader": "^6.2.1",
"typescript": "~3.7.0",
"typescript": "3.6.4",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('SpeechClient TypeScript system test default', () => {
};
const [response] = await client.recognize(request);
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0].alternatives![0].transcript,
'hello'
);
});
Expand Down Expand Up @@ -69,7 +69,7 @@ describe('SpeechClient TypeScript system test default', () => {
const [operation] = await client.longRunningRecognize(request);
const [response] = await operation.promise();
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0].alternatives![0].transcript,
'hello'
);
});
Expand Down Expand Up @@ -103,7 +103,7 @@ describe('SpeechClient TypeScript system test default', () => {
'data',
(response: google.cloud.speech.v1.IStreamingRecognizeResponse) => {
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0].alternatives![0].transcript,
'test of streaming recognize call'
);
gotResponse = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('SpeechClient TypeScript system test v1', () => {
};
const [response] = await client.recognize(request);
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0]!.alternatives![0].transcript,
'hello'
);
});
Expand Down Expand Up @@ -69,7 +69,7 @@ describe('SpeechClient TypeScript system test v1', () => {
const [operation] = await client.longRunningRecognize(request);
const [response] = await operation.promise();
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0].alternatives![0].transcript,
'hello'
);
});
Expand Down Expand Up @@ -103,7 +103,7 @@ describe('SpeechClient TypeScript system test v1', () => {
'data',
(response: google.cloud.speech.v1.IStreamingRecognizeResponse) => {
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0].alternatives![0].transcript,
'test of streaming recognize call'
);
gotResponse = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('SpeechClient TypeScript system test v1p1beta1', () => {
};
const [response] = await client.recognize(request);
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0].alternatives![0].transcript,
'hello'
);
});
Expand Down Expand Up @@ -69,7 +69,7 @@ describe('SpeechClient TypeScript system test v1p1beta1', () => {
const [operation] = await client.longRunningRecognize(request);
const [response] = await operation.promise();
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0].alternatives![0].transcript,
'hello'
);
});
Expand Down Expand Up @@ -103,7 +103,7 @@ describe('SpeechClient TypeScript system test v1p1beta1', () => {
'data',
(response: google.cloud.speech.v1p1beta1.IStreamingRecognizeResponse) => {
assert.strictEqual(
response?.results?.[0]?.alternatives?.[0]?.transcript,
response.results![0].alternatives![0].transcript,
'test of streaming recognize call'
);
gotResponse = true;
Expand Down

0 comments on commit e0b91fb

Please sign in to comment.