From 13a08eb7189933890fd01e39b61141ab3ee027be Mon Sep 17 00:00:00 2001 From: Ardit Marku Date: Wed, 20 Mar 2024 19:04:58 +0200 Subject: [PATCH] Fix the serialization tests --- cadence/tests/serialize_nft_tests.cdc | 37 ++------------------------- cadence/tests/serialize_tests.cdc | 29 --------------------- 2 files changed, 2 insertions(+), 64 deletions(-) diff --git a/cadence/tests/serialize_nft_tests.cdc b/cadence/tests/serialize_nft_tests.cdc index efd97991..d4a4928e 100644 --- a/cadence/tests/serialize_nft_tests.cdc +++ b/cadence/tests/serialize_nft_tests.cdc @@ -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", diff --git a/cadence/tests/serialize_tests.cdc b/cadence/tests/serialize_tests.cdc index b0e32a19..99a5b8a8 100644 --- a/cadence/tests/serialize_tests.cdc +++ b/cadence/tests/serialize_tests.cdc @@ -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: []