From 5ad0e9326dcbed82c251a7786ddd9daa5449285a Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Tue, 9 Jul 2024 16:02:38 +0700 Subject: [PATCH] fix: tests --- nip47/notifications/nip47_notifier_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nip47/notifications/nip47_notifier_test.go b/nip47/notifications/nip47_notifier_test.go index 5b943ba5..91e73e94 100644 --- a/nip47/notifications/nip47_notifier_test.go +++ b/nip47/notifications/nip47_notifier_test.go @@ -9,6 +9,7 @@ import ( "github.com/getAlby/hub/db" "github.com/getAlby/hub/events" + "github.com/getAlby/hub/lnclient" "github.com/getAlby/hub/nip47/permissions" "github.com/getAlby/hub/tests" "github.com/getAlby/hub/transactions" @@ -55,7 +56,7 @@ func TestSendNotification_PaymentReceived(t *testing.T) { testEvent := &events.Event{ Event: "nwc_payment_received", - Properties: &events.PaymentReceivedEventProperties{ + Properties: &lnclient.Transaction{ PaymentHash: tests.MockLNClientTransaction.PaymentHash, }, } @@ -136,7 +137,7 @@ func TestSendNotification_PaymentSent(t *testing.T) { testEvent := &events.Event{ Event: "nwc_payment_sent", - Properties: &events.PaymentSentEventProperties{ + Properties: &lnclient.Transaction{ PaymentHash: tests.MockLNClientTransaction.PaymentHash, }, } @@ -196,7 +197,7 @@ func TestSendNotificationNoPermission(t *testing.T) { testEvent := &events.Event{ Event: "nwc_payment_received", - Properties: &events.PaymentReceivedEventProperties{ + Properties: &lnclient.Transaction{ PaymentHash: tests.MockPaymentHash, }, }