nip05: identifier to url.

This commit is contained in:
fiatjaf
2024-11-27 01:12:57 -03:00
parent 1ac5516440
commit a1a4c04a18
2 changed files with 11 additions and 3 deletions

View File

@@ -47,10 +47,10 @@ func TestQuery(t *testing.T) {
for _, test := range tests {
pp, err := QueryIdentifier(context.Background(), test.input)
if test.expectError {
assert.Error(t, err, "Expected error for input: %s", test.input)
assert.Error(t, err, "expected error for input: %s", test.input)
} else {
assert.NoError(t, err, "Did not expect error for input: %s", test.input)
assert.Equal(t, test.expectedKey, pp.PublicKey, "For input: %s", test.input)
assert.NoError(t, err, "did not expect error for input: %s", test.input)
assert.Equal(t, test.expectedKey, pp.PublicKey, "for input: %s", test.input)
}
}
}