From 8aac57020d000cd83a75b88f8f3435c0e4ad5712 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 17 Jul 2018 22:06:39 -0700 Subject: [PATCH] test: use strictEqual in tests --- test/gapic-v1.js | 6 +++--- test/gapic-v1.test.js | 4 ++-- test/gapic-v1p1beta1.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/gapic-v1.js b/test/gapic-v1.js index 169e010e..dc0712b7 100644 --- a/test/gapic-v1.js +++ b/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/test/gapic-v1.test.js b/test/gapic-v1.test.js index 1240223b..75dd2342 100644 --- a/test/gapic-v1.test.js +++ b/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/test/gapic-v1p1beta1.js b/test/gapic-v1p1beta1.js index 899387a3..04d3a4c6 100644 --- a/test/gapic-v1p1beta1.js +++ b/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(); });