@@ -42,7 +42,7 @@ describe('client with security marks for assets', async () => {
42
42
console . log ( 'data %j' , data ) ;
43
43
} ) ;
44
44
it ( 'client can add security marks to asset.' , ( ) => {
45
- const output = exec ( `node v2/addSecurityMarks.js ${ data . assetName } ` ) ;
45
+ const output = execSync ( `node v2/addSecurityMarks.js ${ data . assetName } ` ) . toString ( ) ;
46
46
assert . include ( output , data . assetName ) ;
47
47
assert . match ( output , / k e y _ a / ) ;
48
48
assert . match ( output , / v a l u e _ a / ) ;
@@ -53,9 +53,9 @@ describe('client with security marks for assets', async () => {
53
53
54
54
it ( 'client can add and delete security marks' , ( ) => {
55
55
// Ensure marks are set.
56
- exec ( `node v2/addSecurityMarks.js ${ data . assetName } ` ) ;
56
+ execSync ( `node v2/addSecurityMarks.js ${ data . assetName } ` ) . toString ( ) ;
57
57
58
- const output = exec ( `node v2/addDeleteSecurityMarks.js ${ data . assetName } ` ) ;
58
+ const output = execSync ( `node v2/addDeleteSecurityMarks.js ${ data . assetName } ` ) . toString ( ) ;
59
59
assert . match ( output , / k e y _ a / ) ;
60
60
assert . match ( output , / n e w _ v a l u e _ a / ) ;
61
61
assert . notMatch ( output , / k e y _ b / ) ;
@@ -64,11 +64,11 @@ describe('client with security marks for assets', async () => {
64
64
65
65
it ( 'client can delete security marks' , ( ) => {
66
66
// Ensure marks are set.
67
- exec ( `node v2/addSecurityMarks.js ${ data . assetName } ` ) ;
67
+ execSync ( `node v2/addSecurityMarks.js ${ data . assetName } ` ) . toString ( ) ;
68
68
69
- const output = exec (
69
+ const output = execSync (
70
70
`node v2/deleteAssetsSecurityMarks.js ${ data . assetName } `
71
- ) ;
71
+ ) . toString ( ) ;
72
72
assert . notMatch ( output , / k e y _ a / ) ;
73
73
assert . notMatch ( output , / v a l u e _ a / ) ;
74
74
assert . notMatch ( output , / k e y _ b / ) ;
0 commit comments