Skip to content

Commit

Permalink
Fix the serialization tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Mar 20, 2024
1 parent 572e877 commit 13a08eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 64 deletions.
37 changes: 2 additions & 35 deletions cadence/tests/serialize_nft_tests.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -14,52 +14,19 @@ access(all) var mintedBlockHeight: UInt64 = 0
access(all)
fun setup() {
var err = Test.deployContract(
name: "ViewResolver",
path: "../contracts/standards/ViewResolver.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "Burner",
path: "../contracts/standards/Burner.cdc",
arguments: []
)
err = Test.deployContract(
name: "FungibleToken",
path: "../contracts/standards/FungibleToken.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "NonFungibleToken",
path: "../contracts/standards/NonFungibleToken.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "MetadataViews",
path: "../contracts/standards/MetadataViews.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "FungibleTokenMetadataViews",
path: "../contracts/standards/FungibleTokenMetadataViews.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "ExampleNFT",
path: "../contracts/example-assets/ExampleNFT.cdc",
arguments: []
)
Test.expect(err, Test.beNil())

err = Test.deployContract(
name: "Serialize",
path: "../contracts/utils/Serialize.cdc",
arguments: []
)
Test.expect(err, Test.beNil())

err = Test.deployContract(
name: "SerializeNFT",
path: "../contracts/utils/SerializeNFT.cdc",
Expand Down
29 changes: 0 additions & 29 deletions cadence/tests/serialize_tests.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@ let alice = Test.createAccount()
access(all)
fun setup() {
var err = Test.deployContract(
name: "ViewResolver",
path: "../contracts/standards/ViewResolver.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "Burner",
path: "../contracts/standards/Burner.cdc",
arguments: []
)
err = Test.deployContract(
name: "FungibleToken",
path: "../contracts/standards/FungibleToken.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "NonFungibleToken",
path: "../contracts/standards/NonFungibleToken.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "MetadataViews",
path: "../contracts/standards/MetadataViews.cdc",
arguments: []
)
Test.expect(err, Test.beNil())
err = Test.deployContract(
name: "Serialize",
path: "../contracts/utils/Serialize.cdc",
arguments: []
Expand Down

0 comments on commit 13a08eb

Please sign in to comment.