From c4a2d71acc3c6395da708fbe25cf1c4246d7d39e Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 18 Jul 2018 01:00:21 -0700 Subject: [PATCH] test: use strictEqual in tests (#49) --- packages/google-cloud-oslogin/test/gapic-v1beta.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/google-cloud-oslogin/test/gapic-v1beta.js b/packages/google-cloud-oslogin/test/gapic-v1beta.js index d70d555c49c..6db19a862b9 100644 --- a/packages/google-cloud-oslogin/test/gapic-v1beta.js +++ b/packages/google-cloud-oslogin/test/gapic-v1beta.js @@ -66,7 +66,7 @@ describe('OsLoginServiceClient', () => { client.deletePosixAccount(request, err => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); done(); }); }); @@ -115,7 +115,7 @@ describe('OsLoginServiceClient', () => { client.deleteSshPublicKey(request, err => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); done(); }); }); @@ -176,7 +176,7 @@ describe('OsLoginServiceClient', () => { client.getLoginProfile(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(); }); @@ -240,7 +240,7 @@ describe('OsLoginServiceClient', () => { client.getSshPublicKey(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(); }); @@ -301,7 +301,7 @@ describe('OsLoginServiceClient', () => { client.importSshPublicKey(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(); }); @@ -369,7 +369,7 @@ describe('OsLoginServiceClient', () => { client.updateSshPublicKey(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(); });