Skip to content

Commit

Permalink
can delete
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatureDev committed May 19, 2023
1 parent e103754 commit 0f32b57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion model/client/admin/data/can_delete_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

type CanDeleteRequest struct {
CanDelete common.LedgerSpecifier `json:"can_delete"`
CanDelete common.LedgerSpecifier `json:"can_delete,omitempty"`
}

func (*CanDeleteRequest) Method() string {
Expand Down
8 changes: 8 additions & 0 deletions model/client/admin/data/can_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ func TestCanDeleteRequest(t *testing.T) {
t.Error(err)
}
}
func TestCanDeleteRequestEmpty(t *testing.T) {
s := CanDeleteRequest{}

j := `{}`

if err := test.SerializeAndDeserialize(t, s, j); err != nil {
t.Error(err)
}
}
func TestCanDeleteResponse(t *testing.T) {
s := CanDeleteResponse{
CanDelete: 54321,
Expand Down

0 comments on commit 0f32b57

Please sign in to comment.