Skip to content

Commit 28b7581

Browse files
committed
Update tests for changed default arguments
`--kdf` default is now 'none' not '0' `--md` default is now 'md5' not 'MD5'
1 parent f2c1640 commit 28b7581

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_init.bats

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ SETUP_SKIP_INIT_TRANSCRYPT=1
6161
[[ "${output}" = *"The current repository was configured using transcrypt version $VERSION"* ]]
6262
[[ "${output}" = *" CIPHER: aes-256-cbc"* ]]
6363
[[ "${output}" = *" PASSWORD: abc 123"* ]]
64-
[[ "${output}" = *" transcrypt -c 'aes-256-cbc' -p 'abc 123' -md 'MD5' --kdf '0' -sm 'password'"* ]]
64+
[[ "${output}" = *" transcrypt -c 'aes-256-cbc' -p 'abc 123' -md 'md5' --kdf 'none' -sm 'password'"* ]]
6565
}
6666

6767
@test "init: show details for -d" {
@@ -73,7 +73,7 @@ SETUP_SKIP_INIT_TRANSCRYPT=1
7373
[[ "${output}" = *"The current repository was configured using transcrypt version $VERSION"* ]]
7474
[[ "${output}" = *" CIPHER: aes-256-cbc"* ]]
7575
[[ "${output}" = *" PASSWORD: abc 123"* ]]
76-
[[ "${output}" = *" transcrypt -c 'aes-256-cbc' -p 'abc 123' -md 'MD5' --kdf '0' -sm 'password'"* ]]
76+
[[ "${output}" = *" transcrypt -c 'aes-256-cbc' -p 'abc 123' -md 'md5' --kdf 'none' -sm 'password'"* ]]
7777
}
7878

7979
@test "init: respects core.hooksPath setting" {
@@ -90,7 +90,7 @@ SETUP_SKIP_INIT_TRANSCRYPT=1
9090
[[ "${output}" = *"The current repository was configured using transcrypt version $VERSION"* ]]
9191
[[ "${output}" = *" CIPHER: aes-256-cbc"* ]]
9292
[[ "${output}" = *" PASSWORD: abc 123"* ]]
93-
[[ "${output}" = *" transcrypt -c 'aes-256-cbc' -p 'abc 123' -md 'MD5' --kdf '0' -sm 'password'"* ]]
93+
[[ "${output}" = *" transcrypt -c 'aes-256-cbc' -p 'abc 123' -md 'md5' --kdf 'none' -sm 'password'"* ]]
9494
}
9595

9696
@test "init: transcrypt.openssl-path config setting defaults to 'openssl'" {

0 commit comments

Comments
 (0)