Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
test: use strictEqual in tests (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and jkwlui committed Jul 18, 2018
1 parent 3c0f758 commit f381e3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/gapic-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('TextToSpeechClient', () => {

client.listVoices(request, (err, response) => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
assert(typeof response === 'undefined');
done();
});
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('TextToSpeechClient', () => {

client.synthesizeSpeech(request, (err, response) => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
assert(typeof response === 'undefined');
done();
});
Expand Down
4 changes: 2 additions & 2 deletions test/gapic-v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('TextToSpeechClient', () => {

client.listVoices(request, (err, response) => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
assert(typeof response === 'undefined');
done();
});
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('TextToSpeechClient', () => {

client.synthesizeSpeech(request, (err, response) => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
assert(typeof response === 'undefined');
done();
});
Expand Down

0 comments on commit f381e3d

Please sign in to comment.