Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jul 9, 2024
1 parent 1975d81 commit 5ad0e93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nip47/notifications/nip47_notifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
},
}
Expand Down Expand Up @@ -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,
},
}
Expand Down Expand Up @@ -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,
},
}
Expand Down

0 comments on commit 5ad0e93

Please sign in to comment.