Skip to content

Commit

Permalink
test: use strictEqual in tests (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and jkwlui committed Jul 18, 2018
1 parent dbc2271 commit bb72997
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions packages/google-privacy-dlp/test/gapic-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('DlpServiceClient', () => {

client.inspectContent(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 @@ -135,7 +135,7 @@ describe('DlpServiceClient', () => {

client.redactImage(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 @@ -192,7 +192,7 @@ describe('DlpServiceClient', () => {

client.deidentifyContent(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 @@ -249,7 +249,7 @@ describe('DlpServiceClient', () => {

client.reidentifyContent(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 @@ -300,7 +300,7 @@ describe('DlpServiceClient', () => {

client.listInfoTypes(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 @@ -364,7 +364,7 @@ describe('DlpServiceClient', () => {

client.createInspectTemplate(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 @@ -434,7 +434,7 @@ describe('DlpServiceClient', () => {

client.updateInspectTemplate(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 @@ -492,7 +492,7 @@ describe('DlpServiceClient', () => {

client.getInspectTemplate(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 @@ -559,7 +559,7 @@ describe('DlpServiceClient', () => {

client.listInspectTemplates(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 @@ -617,7 +617,7 @@ describe('DlpServiceClient', () => {

client.deleteInspectTemplate(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 @@ -680,7 +680,7 @@ describe('DlpServiceClient', () => {

client.createDeidentifyTemplate(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 @@ -750,7 +750,7 @@ describe('DlpServiceClient', () => {

client.updateDeidentifyTemplate(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 @@ -820,7 +820,7 @@ describe('DlpServiceClient', () => {

client.getDeidentifyTemplate(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 @@ -887,7 +887,7 @@ describe('DlpServiceClient', () => {

client.listDeidentifyTemplates(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 @@ -945,7 +945,7 @@ describe('DlpServiceClient', () => {

client.deleteDeidentifyTemplate(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 @@ -1006,7 +1006,7 @@ describe('DlpServiceClient', () => {

client.createDlpJob(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 @@ -1073,7 +1073,7 @@ describe('DlpServiceClient', () => {

client.listDlpJobs(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 @@ -1135,7 +1135,7 @@ describe('DlpServiceClient', () => {

client.getDlpJob(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 @@ -1185,7 +1185,7 @@ describe('DlpServiceClient', () => {

client.deleteDlpJob(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 @@ -1234,7 +1234,7 @@ describe('DlpServiceClient', () => {

client.cancelDlpJob(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 @@ -1300,7 +1300,7 @@ describe('DlpServiceClient', () => {

client.listJobTriggers(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 @@ -1370,7 +1370,7 @@ describe('DlpServiceClient', () => {

client.getJobTrigger(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 @@ -1420,7 +1420,7 @@ describe('DlpServiceClient', () => {

client.deleteJobTrigger(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 @@ -1489,7 +1489,7 @@ describe('DlpServiceClient', () => {

client.updateJobTrigger(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 @@ -1553,7 +1553,7 @@ describe('DlpServiceClient', () => {

client.createJobTrigger(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 bb72997

Please sign in to comment.