Skip to content

Commit

Permalink
fix: use predefined error variable
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Dec 17, 2024
1 parent bf707a4 commit ff8c492
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _deploy/r/gnoswap/gnft/gnft_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func TestBurn(t *testing.T) {
callerRealm: std.NewCodeRealm(consts.POSITION_PATH),
tokenIdToBurn: 99,
shouldPanic: true,
panicMsg: "invalid token id",
panicMsg: errInvalidTokenId,
},
{
name: "burn token id(2)",
Expand Down Expand Up @@ -350,7 +350,7 @@ func TestSetTokenURI(t *testing.T) {
name: "set token uri of non-minted token id",
tokenId: 99,
shouldErr: true,
errMsg: "invalid token id",
errMsg: errInvalidTokenId,
},
{
name: "set token uri of token id(1)",
Expand Down Expand Up @@ -387,7 +387,7 @@ func TestTokenURI(t *testing.T) {
name: "get token uri of non-minted token id",
tokenId: 99,
shouldPanic: true,
panicMsg: "invalid token id",
panicMsg: errInvalidTokenId,
},
{
name: "get token uri of minted token but not set token uri",
Expand All @@ -397,7 +397,7 @@ func TestTokenURI(t *testing.T) {
},
tokenId: 1,
shouldPanic: true,
panicMsg: "invalid token id",
panicMsg: errInvalidTokenId,
},
{
name: "get token uri of minted token after setting token uri",
Expand Down

0 comments on commit ff8c492

Please sign in to comment.