@@ -18,7 +18,6 @@ const {SecurityCenterClient} = require('@google-cloud/security-center');
1818const { assert} = require ( 'chai' ) ;
1919const { describe, it, before} = require ( 'mocha' ) ;
2020const { execSync} = require ( 'child_process' ) ;
21- const exec = cmd => execSync ( cmd , { encoding : 'utf8' } ) ;
2221
2322// TODO(developers): update for your own environment
2423const 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 , / k e y _ a / ) ;
4849 assert . match ( output , / v a l u e _ 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 , / k e y _ a / ) ;
6063 assert . match ( output , / n e w _ v a l u e _ a / ) ;
6164 assert . notMatch ( output , / k e y _ b / ) ;
0 commit comments