@@ -18,7 +18,6 @@ const {SecurityCenterClient} = require('@google-cloud/security-center');
18
18
const { assert} = require ( 'chai' ) ;
19
19
const { describe, it, before} = require ( 'mocha' ) ;
20
20
const { execSync} = require ( 'child_process' ) ;
21
- const exec = cmd => execSync ( cmd , { encoding : 'utf8' } ) ;
22
21
23
22
// TODO(developers): update for your own environment
24
23
const organizationId = '1081635000895' ;
@@ -42,7 +41,9 @@ describe('client with security marks for assets', async () => {
42
41
console . log ( 'data %j' , data ) ;
43
42
} ) ;
44
43
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 ( ) ;
46
47
assert . include ( output , data . assetName ) ;
47
48
assert . match ( output , / k e y _ a / ) ;
48
49
assert . match ( output , / v a l u e _ a / ) ;
@@ -55,7 +56,9 @@ describe('client with security marks for assets', async () => {
55
56
// Ensure marks are set.
56
57
execSync ( `node v2/addSecurityMarks.js ${ data . assetName } ` ) . toString ( ) ;
57
58
58
- const output = execSync ( `node v2/addDeleteSecurityMarks.js ${ data . assetName } ` ) . toString ( ) ;
59
+ const output = execSync (
60
+ `node v2/addDeleteSecurityMarks.js ${ data . assetName } `
61
+ ) . toString ( ) ;
59
62
assert . match ( output , / k e y _ a / ) ;
60
63
assert . match ( output , / n e w _ v a l u e _ a / ) ;
61
64
assert . notMatch ( output , / k e y _ b / ) ;
0 commit comments