aboutsummaryrefslogtreecommitdiff
path: root/cli_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-07 00:53:08 +0700
committerShulhan <ms@kilabit.info>2022-08-07 00:53:08 +0700
commitf0831230b4578a580ae207e446654ca39c95a550 (patch)
tree01415534f7b05331ad6096b31683e0cc0bf3d6a9 /cli_test.go
parent035f4e6c87f49eee768937cbec330f803376897a (diff)
downloadgotp-f0831230b4578a580ae207e446654ca39c95a550.tar.xz
go.mod: set minimum Go version to 1.18 and update all modules
The 1.17 has been deprecated since the release of 1.19. This update affect the test cases on Cli.
Diffstat (limited to 'cli_test.go')
-rw-r--r--cli_test.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/cli_test.go b/cli_test.go
index 8bd1c6a..c91d11e 100644
--- a/cli_test.go
+++ b/cli_test.go
@@ -83,8 +83,10 @@ func TestCli_Add(t *testing.T) {
}
var cases = []testCase{{
- desc: `With nil issuer`,
- expConfig: "[gotp]\nprivate_key =\n",
+ desc: `With nil issuer`,
+ expConfig: `[gotp]
+private_key =
+`,
}, {
desc: `With invalid label`,
issuer: &Issuer{
@@ -105,7 +107,12 @@ func TestCli_Add(t *testing.T) {
Hash: HashSHA1,
Secret: `x`,
},
- expConfig: "[gotp]\nprivate_key =\n\n[gotp \"issuer\"]\ntest = SHA1:x:6:30:\n",
+ expConfig: `[gotp "issuer"]
+test = SHA1:x:6:30:
+
+[gotp]
+private_key =
+`,
}}
var (