mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
test(nwc): label the message assertion with its encryption scheme
A NIP-44-only regression failed with a bare expected/actual diff, not saying which pass of the loop broke. Refs: dkamy-cy6.4
This commit is contained in:
+3
-2
@@ -74,8 +74,9 @@ class NwcRefusalRoundTripTest {
|
||||
)
|
||||
|
||||
val response = NostrWalletConnectResponseCache(clientSigner).decryptResponse(reply)
|
||||
assertIs<IErrorResponseLike>(response, "$code over ${if (useNip44) "NIP-44" else "NIP-04"}")
|
||||
assertEquals(message, response.errorMessage())
|
||||
val case = "$code over ${if (useNip44) "NIP-44" else "NIP-04"}"
|
||||
assertIs<IErrorResponseLike>(response, case)
|
||||
assertEquals(message, response.errorMessage(), case)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user