Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jun 24, 2024
1 parent b94177f commit bc176a0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions nip47/controllers/get_info_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ func TestHandleGetInfoEvent_NoPermission(t *testing.T) {

assert.Nil(t, publishedResponse.Error)
nodeInfo := publishedResponse.Result.(*getInfoResponse)
assert.Empty(t, tests.MockNodeInfo.Alias, nodeInfo.Alias)
assert.Empty(t, tests.MockNodeInfo.Color, nodeInfo.Color)
assert.Empty(t, tests.MockNodeInfo.Pubkey, nodeInfo.Pubkey)
assert.Empty(t, tests.MockNodeInfo.Network, nodeInfo.Network)
assert.Empty(t, tests.MockNodeInfo.BlockHeight, nodeInfo.BlockHeight)
assert.Empty(t, tests.MockNodeInfo.BlockHash, nodeInfo.BlockHash)
assert.Equal(t, []string{"get_info"}, nodeInfo.Methods)
assert.Empty(t, nodeInfo.Alias)
assert.Empty(t, nodeInfo.Color)
assert.Empty(t, nodeInfo.Pubkey)
assert.Empty(t, nodeInfo.Network)
assert.Empty(t, nodeInfo.BlockHeight)
assert.Empty(t, nodeInfo.BlockHash)
assert.Equal(t, []string{"get_balance"}, nodeInfo.Methods)
assert.Equal(t, []string{}, nodeInfo.Notifications)
}

Expand Down

0 comments on commit bc176a0

Please sign in to comment.