Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixing tsc error caused by @types/node update #965

Merged
merged 1 commit into from
May 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/test.googleauth.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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