Skip to content

Commit

Permalink
add test coverage for vault & collection config queries
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Jun 7, 2024
1 parent ba7e726 commit 45f058f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cadence/tests/flow_evm_bridge_tests.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 45f058f

Please sign in to comment.