Skip to content

Commit 567a1da

Browse files
committed
chore(modelarmor): fixed linting
1 parent ff148e0 commit 567a1da

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

model-armor/test/modelarmor.test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
'use strict';
1616

17-
const { assert } = require('chai');
18-
const { v4: uuidv4 } = require('uuid');
19-
const { ModelArmorClient } = require('@google-cloud/modelarmor').v1;
20-
const { DlpServiceClient } = require('@google-cloud/dlp');
17+
const {assert} = require('chai');
18+
const {v4: uuidv4} = require('uuid');
19+
const {ModelArmorClient} = require('@google-cloud/modelarmor').v1;
20+
const {DlpServiceClient} = require('@google-cloud/dlp');
2121

2222
let projectId;
2323
const locationId = process.env.GCLOUD_LOCATION || 'us-central1';
@@ -173,9 +173,9 @@ async function createDlpTemplates() {
173173
inspectTemplate: {
174174
inspectConfig: {
175175
infoTypes: [
176-
{ name: 'EMAIL_ADDRESS' },
177-
{ name: 'PHONE_NUMBER' },
178-
{ name: 'US_INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER' },
176+
{name: 'EMAIL_ADDRESS'},
177+
{name: 'PHONE_NUMBER'},
178+
{name: 'US_INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER'},
179179
],
180180
},
181181
},
@@ -260,7 +260,7 @@ describe('Model Armor tests', () => {
260260

261261
before(async () => {
262262
projectId = await client.getProjectId();
263-
const { protos } = require('@google-cloud/modelarmor');
263+
const {protos} = require('@google-cloud/modelarmor');
264264
// Import necessary enums
265265
const DetectionConfidenceLevel =
266266
protos.google.cloud.modelarmor.v1.DetectionConfidenceLevel;
@@ -298,9 +298,9 @@ describe('Model Armor tests', () => {
298298
basicConfig: {
299299
filterEnforcement: SdpBasicConfigEnforcement.ENABLED,
300300
infoTypes: [
301-
{ name: 'EMAIL_ADDRESS' },
302-
{ name: 'PHONE_NUMBER' },
303-
{ name: 'US_INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER' },
301+
{name: 'EMAIL_ADDRESS'},
302+
{name: 'PHONE_NUMBER'},
303+
{name: 'US_INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER'},
304304
],
305305
},
306306
},
@@ -964,7 +964,7 @@ describe('Model Armor tests', () => {
964964
it.skip('should get project floor settings', async () => {
965965
const getProjectFloorSettings = require('../snippets/getProjectFloorSettings');
966966

967-
const output = await getProjectFloorSettings.main(projectId)
967+
const output = await getProjectFloorSettings.main(projectId);
968968
// Check for expected name format in output
969969
const expectedName = `projects/${projectId}/locations/global/floorSetting`;
970970
assert.equal(output.name, expectedName);

0 commit comments

Comments
 (0)