From 45f058fdee9369e82881b9c5e1b353d776ce26bd Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Fri, 7 Jun 2024 12:39:03 -0600 Subject: [PATCH] add test coverage for vault & collection config queries --- cadence/tests/flow_evm_bridge_tests.cdc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cadence/tests/flow_evm_bridge_tests.cdc b/cadence/tests/flow_evm_bridge_tests.cdc index d7f01472..b63b111a 100644 --- a/cadence/tests/flow_evm_bridge_tests.cdc +++ b/cadence/tests/flow_evm_bridge_tests.cdc @@ -413,6 +413,12 @@ fun testMintExampleNFTSucceeds() { alice ) Test.expect(setupCollectionResult, Test.beSucceeded()) + let hasCollection = executeScript( + "../scripts/nft/has_collection_configured.cdc", + [exampleNFTIdentifier, alice.address] + ) + Test.expect(hasCollection, Test.beSucceeded()) + Test.assertEqual(true, hasCollection.returnValue as! Bool? ?? panic("Problem getting collection status")) let mintExampleNFTResult = executeTransaction( "../transactions/example-assets/example-nft/mint_nft.cdc", @@ -440,6 +446,12 @@ fun testMintExampleTokenSucceeds() { alice ) Test.expect(setupVaultResult, Test.beSucceeded()) + let hasVault = executeScript( + "../scripts/tokens/has_vault_configured.cdc", + [exampleTokenIdentifier, alice.address] + ) + Test.expect(hasVault, Test.beSucceeded()) + Test.assertEqual(true, hasVault.returnValue as! Bool? ?? panic("Problem getting vault status")) let mintExampleTokenResult = executeTransaction( "../transactions/example-assets/example-token/mint_tokens.cdc",