Skip to content

Commit

Permalink
test: use strictEqual in tests (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and jkwlui committed Jul 18, 2018
1 parent 8d28b32 commit 9effca5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/google-cloud-oslogin/test/gapic-v1beta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down Expand Up @@ -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();
});
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down

0 comments on commit 9effca5

Please sign in to comment.