Skip to content

Commit

Permalink
Merge pull request #2 from onflow/c1-migration
Browse files Browse the repository at this point in the history
Update tests
  • Loading branch information
franklywatson authored Dec 19, 2024
2 parents f3d9e6c + db96a4e commit 4ad1c3e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion cadence/tests/Recipe_test.cdc
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import Test

access(all)
fun setup() {
let err = Test.deployContract(
name: "ExampleToken",
path: "../contracts/Recipe.cdc",
arguments: [],
)

Test.expect(err, Test.beNil())
}


access(all) fun testExample() {
let array = [1, 2, 3]
Test.expect(array.length, Test.equal(3))
}
}
3 changes: 2 additions & 1 deletion flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"ExampleToken": {
"source": "./cadence/contracts/Recipe.cdc",
"aliases": {
"emulator": "f8d6e0586b0a20c7"
"emulator": "f8d6e0586b0a20c7",
"testing": "0000000000000007"
}
}
},
Expand Down

0 comments on commit 4ad1c3e

Please sign in to comment.