@@ -14,7 +14,6 @@ describe('commandCreateSecret', () => {
14
14
const logger = new Logger ( 'CLI Test' , LogLevel . WARN , [ new StreamHandler ( ) ] ) ;
15
15
let dataDir : string ;
16
16
let polykeyAgent : PolykeyAgent ;
17
- let command : Array < string > ;
18
17
19
18
const fileNameArb = fc . stringMatching ( / ^ [ ^ \0 \\ / = ] $ / ) ;
20
19
const envVariableArb = fc . stringMatching ( / ^ ( [ a - z A - Z _ ] [ \w ] + ) ? $ / ) ;
@@ -53,7 +52,7 @@ describe('commandCreateSecret', () => {
53
52
const vaultSecretName = 'vault-secret' ;
54
53
const secretContent = 'this is a secret' ;
55
54
await fs . promises . writeFile ( secretPath , secretContent ) ;
56
- command = [
55
+ const command = [
57
56
'secrets' ,
58
57
'create' ,
59
58
'-np' ,
@@ -79,7 +78,7 @@ describe('commandCreateSecret', () => {
79
78
await polykeyAgent . vaultManager . createVault ( vaultName ) ;
80
79
const secretName = path . join ( dataDir , 'secret' ) ;
81
80
await fs . promises . writeFile ( secretName , secretName ) ;
82
- command = [ 'secrets' , 'create' , '-np' , dataDir , secretName , vaultName ] ;
81
+ const command = [ 'secrets' , 'create' , '-np' , dataDir , secretName , vaultName ] ;
83
82
const result = await testUtils . pkStdio ( command , {
84
83
env : { PK_PASSWORD : password } ,
85
84
cwd : dataDir ,
@@ -100,7 +99,7 @@ describe('commandCreateSecret', () => {
100
99
const secretContent = 'this is a secret' ;
101
100
await fs . promises . writeFile ( secretPath , secretContent ) ;
102
101
const vaultsSecretPath = path . join ( directoryName , secretName ) ;
103
- command = [
102
+ const command = [
104
103
'secrets' ,
105
104
'create' ,
106
105
'-np' ,
0 commit comments