Skip to content

Commit 48a0611

Browse files
vijaykanthmiennae
authored andcommitted
refactor the test to fix lint issue
1 parent 45ad111 commit 48a0611

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

security-center/snippets/system-test/v2/assetSecurityMarks.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const {SecurityCenterClient} = require('@google-cloud/security-center');
1818
const {assert} = require('chai');
1919
const {describe, it, before} = require('mocha');
2020
const {execSync} = require('child_process');
21-
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2221

2322
// TODO(developers): update for your own environment
2423
const organizationId = '1081635000895';
@@ -42,7 +41,9 @@ describe('client with security marks for assets', async () => {
4241
console.log('data %j', data);
4342
});
4443
it('client can add security marks to asset.', () => {
45-
const output = execSync(`node v2/addSecurityMarks.js ${data.assetName}`).toString();
44+
const output = execSync(
45+
`node v2/addSecurityMarks.js ${data.assetName}`
46+
).toString();
4647
assert.include(output, data.assetName);
4748
assert.match(output, /key_a/);
4849
assert.match(output, /value_a/);
@@ -55,7 +56,9 @@ describe('client with security marks for assets', async () => {
5556
// Ensure marks are set.
5657
execSync(`node v2/addSecurityMarks.js ${data.assetName}`).toString();
5758

58-
const output = execSync(`node v2/addDeleteSecurityMarks.js ${data.assetName}`).toString();
59+
const output = execSync(
60+
`node v2/addDeleteSecurityMarks.js ${data.assetName}`
61+
).toString();
5962
assert.match(output, /key_a/);
6063
assert.match(output, /new_value_a/);
6164
assert.notMatch(output, /key_b/);

0 commit comments

Comments
 (0)