Skip to content

Commit e10e2f8

Browse files
authored
Update Cadence Test Framework Syntax (#1640)
1 parent 4d20856 commit e10e2f8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

docs/build/tools/flow-cli/tests.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ Assuming you have a test script named `test_script_test.cdc` in your project dir
9595
// test_script_test.cdc
9696
import Test
9797
98-
access(all) let blockchain = Test.newEmulatorBlockchain()
99-
10098
access(all) fun testSumOfTwo() {
101-
let scriptResult = blockchain.executeScript(
99+
let scriptResult = Test.executeScript(
102100
"access(all) fun main(a: Int, b: Int): Int { return a + b }",
103101
[2, 3]
104102
)

0 commit comments

Comments
 (0)