From f993ccc08b3748b5b823970d69376e6debf0acaf Mon Sep 17 00:00:00 2001 From: Lea Lobanov Date: Mon, 16 Dec 2024 02:57:09 +0400 Subject: [PATCH] Update tests --- cadence/contracts/Recipe.cdc | 2 +- cadence/tests/Recipe_test.cdc | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cadence/contracts/Recipe.cdc b/cadence/contracts/Recipe.cdc index 2799d27..fe262af 100644 --- a/cadence/contracts/Recipe.cdc +++ b/cadence/contracts/Recipe.cdc @@ -1,6 +1,6 @@ import "SetAndSeries" -access(all) contract Recipe{ +access(all) contract Recipe { // More code from Series resource above... access(all) diff --git a/cadence/tests/Recipe_test.cdc b/cadence/tests/Recipe_test.cdc index 986e8fe..fa25985 100644 --- a/cadence/tests/Recipe_test.cdc +++ b/cadence/tests/Recipe_test.cdc @@ -4,3 +4,14 @@ access(all) fun testExample() { let array = [1, 2, 3] Test.expect(array.length, Test.equal(3)) } + +access(all) +fun setup() { + let err = Test.deployContract( + name: "Recipe", + path: "../contracts/Recipe.cdc", + arguments: [], + ) + + Test.expect(err, Test.beNil()) +} \ No newline at end of file