Skip to content

Commit

Permalink
fix: fixing tsc error caused by @types/node update (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed May 21, 2020
1 parent 81a9133 commit b94edb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions test/test.googleauth.ts
Expand Up @@ -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();
});

Expand All @@ -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();
});

Expand All @@ -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();
});

Expand Down
6 changes: 3 additions & 3 deletions test/test.jwt.ts
Expand Up @@ -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();
});
});
Expand Down Expand Up @@ -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();
});
});
Expand All @@ -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();
});
});
Expand Down
6 changes: 3 additions & 3 deletions test/test.oauth2.ts
Expand Up @@ -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();
});

Expand All @@ -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();
});
Expand All @@ -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();
});
Expand Down

0 comments on commit b94edb0

Please sign in to comment.