mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-15 16:50:16 +01:00
feat(kind): using constants
This commit is contained in:
@@ -44,7 +44,7 @@ func TestEventSerialization(t *testing.T) {
|
||||
{
|
||||
ID: "92570b321da503eac8014b23447301eb3d0bbdfbace0d11a4e4072e72bb7205d",
|
||||
PubKey: "e9142f724955c5854de36324dab0434f97b15ec6b33464d56ebe491e3f559d1b",
|
||||
Kind: 4,
|
||||
Kind: KindEncryptedDirectMessage,
|
||||
CreatedAt: Timestamp(1671028682),
|
||||
Tags: Tags{Tag{"p", "f8340b2bde651576b75af61aa26c80e13c65029f00f7f64004eece679bf7059f"}},
|
||||
Content: "you say yes, I say no",
|
||||
@@ -90,7 +90,7 @@ func TestEventSerializationWithExtraFields(t *testing.T) {
|
||||
evt := Event{
|
||||
ID: "92570b321da503eac8014b23447301eb3d0bbdfbace0d11a4e4072e72bb7205d",
|
||||
PubKey: "e9142f724955c5854de36324dab0434f97b15ec6b33464d56ebe491e3f559d1b",
|
||||
Kind: 7,
|
||||
Kind: KindReaction,
|
||||
CreatedAt: Timestamp(1671028682),
|
||||
Content: "there is an extra field here",
|
||||
Sig: "ed08d2dd5b0f7b6a3cdc74643d4adee3158ddede9cc848e8cd97630c097001acc2d052d2d3ec2b7ac4708b2314b797106d1b3c107322e61b5e5cc2116e099b79",
|
||||
|
||||
Reference in New Issue
Block a user