From b94edb0716572593e4e9cb8a9b9bbfa567f71625 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 20 May 2020 19:14:13 -0700 Subject: [PATCH] fix: fixing tsc error caused by @types/node update (#965) --- test/test.googleauth.ts | 8 ++++---- test/test.jwt.ts | 6 +++--- test/test.oauth2.ts | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/test.googleauth.ts b/test/test.googleauth.ts index 1d894032..7be33b39 100644 --- a/test/test.googleauth.ts +++ b/test/test.googleauth.ts @@ -1032,7 +1032,7 @@ describe('googleauth', () => { const scope = nockNotGCE(); assert.notStrictEqual(true, auth.isGCE); await auth._checkIsGCE(); - assert.strictEqual(false, auth.isGCE); + assert.strictEqual(false as boolean, auth.isGCE); scope.done(); }); @@ -1057,7 +1057,7 @@ describe('googleauth', () => { assert.notStrictEqual(true, auth.isGCE); const scope = nockNotGCE(); await auth._checkIsGCE(); - assert.strictEqual(false, auth.isGCE); + assert.strictEqual(false as boolean, auth.isGCE); scope.done(); }); @@ -1076,9 +1076,9 @@ describe('googleauth', () => { assert.notStrictEqual(true, auth.isGCE); const scope = nockNotGCE(); await auth._checkIsGCE(); - assert.strictEqual(false, auth.isGCE); + assert.strictEqual(false as boolean, auth.isGCE); await auth._checkIsGCE(); - assert.strictEqual(false, auth.isGCE); + assert.strictEqual(false as boolean, auth.isGCE); scope.done(); }); diff --git a/test/test.jwt.ts b/test/test.jwt.ts index ac643dd4..b8165535 100644 --- a/test/test.jwt.ts +++ b/test/test.jwt.ts @@ -393,7 +393,7 @@ describe('jwt', () => { jwt.request({url: 'http://bar'}, () => { assert.strictEqual('initial-access-token', jwt.credentials.access_token); - assert.strictEqual(false, scope.isDone()); + assert.strictEqual(false as boolean, scope.isDone()); done(); }); }); @@ -439,7 +439,7 @@ describe('jwt', () => { jwt.request({url: 'http://bar'}, () => { assert.strictEqual('initial-access-token', jwt.credentials.access_token); - assert.strictEqual(false, scope.isDone()); + assert.strictEqual(false as boolean, scope.isDone()); done(); }); }); @@ -460,7 +460,7 @@ describe('jwt', () => { jwt.request({url: 'http://bar'}, () => { assert.strictEqual('initial-access-token', jwt.credentials.access_token); - assert.strictEqual(false, scope.isDone()); + assert.strictEqual(false as boolean, scope.isDone()); done(); }); }); diff --git a/test/test.oauth2.ts b/test/test.oauth2.ts index 718f91c8..7a48ef78 100644 --- a/test/test.oauth2.ts +++ b/test/test.oauth2.ts @@ -1067,7 +1067,7 @@ describe('oauth2', () => { 'initial-access-token', client.credentials.access_token ); - assert.strictEqual(false, scopes[0].isDone()); + assert.strictEqual(false as boolean, scopes[0].isDone()); scopes[1].done(); }); @@ -1083,7 +1083,7 @@ describe('oauth2', () => { 'initial-access-token', client.credentials.access_token ); - assert.strictEqual(false, scopes[0].isDone()); + assert.strictEqual(false as boolean, scopes[0].isDone()); scopes[1].done(); done(); }); @@ -1100,7 +1100,7 @@ describe('oauth2', () => { 'initial-access-token', client.credentials.access_token ); - assert.strictEqual(false, scopes[0].isDone()); + assert.strictEqual(false as boolean, scopes[0].isDone()); scopes[1].done(); done(); });