Skip to content

Commit

Permalink
Fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Apr 15, 2021
1 parent 58ffddc commit 91046a6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions internal/parsers/tzip/tokens/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,13 @@ func TestTokenMetadata_UnmarshalJSON(t *testing.T) {
{
name: "test ipfs",
tm: TokenMetadata{
Symbol: "SIMMAW",
Name: "Mystery Map Award",
Decimals: int64Ptr(0),
Description: "A most mysterious map has been discovered. Where it leads is uncertain, but an adventure lies ahead.",
DisplayURI: "https://gateway.pinata.cloud/ipfs/QmPkJBaRnb2JwqA1S2sUQayTV9xT3x8MBnsmq7ForBWKuU",
Creators: []string{"test", "author"},
Symbol: "SIMMAW",
Name: "Mystery Map Award",
Decimals: int64Ptr(0),
Description: "A most mysterious map has been discovered. Where it leads is uncertain, but an adventure lies ahead.",
DisplayURI: "https://gateway.pinata.cloud/ipfs/QmPkJBaRnb2JwqA1S2sUQayTV9xT3x8MBnsmq7ForBWKuU",
IsTransferable: true,
Creators: []string{"test", "author"},
Extras: map[string]interface{}{
"nonTransferable": false,
"symbolPreference": false,
Expand All @@ -240,10 +241,11 @@ func TestTokenMetadata_UnmarshalJSON(t *testing.T) {
}, {
name: "test ipfs 2",
tm: TokenMetadata{
Symbol: "TZBKAB",
Name: "Klassare Alpha Brain",
Decimals: int64Ptr(0),
Description: "An upgraded unit, the great Klassare reborn.",
Symbol: "TZBKAB",
Name: "Klassare Alpha Brain",
Decimals: int64Ptr(0),
Description: "An upgraded unit, the great Klassare reborn.",
IsTransferable: true,
Extras: map[string]interface{}{
"isNft": true,
"nonTransferrable": false,
Expand Down

0 comments on commit 91046a6

Please sign in to comment.