From 76bc4953c1d1ec7e2ac6e7e67c5cdc75825a9193 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 15 Aug 2026 09:17:06 -0300 Subject: [PATCH] fix a test that depended on the old hardcoded 01 key. --- cli_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli_test.go b/cli_test.go index 7dd2ed6..248d901 100644 --- a/cli_test.go +++ b/cli_test.go @@ -28,7 +28,7 @@ func call(t *testing.T, cmd string) string { } func TestEventBasic(t *testing.T) { - output := call(t, "nak event --ts 1699485669") + output := call(t, "nak event --ts 1699485669 --sec 01") var evt nostr.Event err := stdjson.Unmarshal([]byte(output), &evt) @@ -230,6 +230,12 @@ func TestNaturalTimestamps(t *testing.T) { require.Equal(t, "nn", evt.Content) } +func TestGroupAdmins(t *testing.T) { + output := call(t, "nak group admins chat.wisp.talk'aw0n6tcl71qa") + + require.Contains(t, output, "e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb") +} + func TestEventJQ(t *testing.T) { // default: string results come out JSON-quoted, like plain jq quoted := call(t, "nak event --ts 1699485669 -c hello --jq .content")