diff --git a/packages/google-cloud-speech/test/gapic-v1.js b/packages/google-cloud-speech/test/gapic-v1.js index 169e010eeeb..dc0712b7664 100644 --- a/packages/google-cloud-speech/test/gapic-v1.js +++ b/packages/google-cloud-speech/test/gapic-v1.js @@ -98,7 +98,7 @@ describe('SpeechClient', () => { client.recognize(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(); }); @@ -196,7 +196,7 @@ describe('SpeechClient', () => { }) .catch(err => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); done(); }); }); @@ -272,7 +272,7 @@ describe('SpeechClient', () => { }) .on('error', err => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); done(); }); diff --git a/packages/google-cloud-speech/test/gapic-v1.test.js b/packages/google-cloud-speech/test/gapic-v1.test.js index 1240223be76..75dd23425e3 100644 --- a/packages/google-cloud-speech/test/gapic-v1.test.js +++ b/packages/google-cloud-speech/test/gapic-v1.test.js @@ -97,7 +97,7 @@ describe('SpeechClient', () => { client.recognize(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(); }); @@ -195,7 +195,7 @@ describe('SpeechClient', () => { }) .catch(err => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); done(); }); }); diff --git a/packages/google-cloud-speech/test/gapic-v1p1beta1.js b/packages/google-cloud-speech/test/gapic-v1p1beta1.js index 899387a3ce9..04d3a4c62dd 100644 --- a/packages/google-cloud-speech/test/gapic-v1p1beta1.js +++ b/packages/google-cloud-speech/test/gapic-v1p1beta1.js @@ -98,7 +98,7 @@ describe('SpeechClient', () => { client.recognize(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(); }); @@ -196,7 +196,7 @@ describe('SpeechClient', () => { }) .catch(err => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); done(); }); }); @@ -272,7 +272,7 @@ describe('SpeechClient', () => { }) .on('error', err => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); done(); });