Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
test: use strictEqual in tests (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and jkwlui committed Jul 18, 2018
1 parent 802c532 commit ad85494
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/gapic-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe('SpeechClient', () => {

client.recognize(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 @@ -196,7 +196,7 @@ describe('SpeechClient', () => {
})
.catch(err => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
done();
});
});
Expand Down Expand Up @@ -272,7 +272,7 @@ describe('SpeechClient', () => {
})
.on('error', err => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
done();
});

Expand Down
4 changes: 2 additions & 2 deletions test/gapic-v1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('SpeechClient', () => {

client.recognize(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 @@ -195,7 +195,7 @@ describe('SpeechClient', () => {
})
.catch(err => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
done();
});
});
Expand Down
6 changes: 3 additions & 3 deletions test/gapic-v1p1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe('SpeechClient', () => {

client.recognize(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 @@ -196,7 +196,7 @@ describe('SpeechClient', () => {
})
.catch(err => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
done();
});
});
Expand Down Expand Up @@ -272,7 +272,7 @@ describe('SpeechClient', () => {
})
.on('error', err => {
assert(err instanceof Error);
assert.equal(err.code, FAKE_STATUS_CODE);
assert.strictEqual(err.code, FAKE_STATUS_CODE);
done();
});

Expand Down

0 comments on commit ad85494

Please sign in to comment.