Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix: update test with create-near-app assumptions
Browse files Browse the repository at this point in the history
the structure of create-near-app changed in v1 and we need to change
this test to match

the commit that changed it is here: near/create-near-app@7ab9ae3
  • Loading branch information
chadoh committed Jul 3, 2020
1 parent e525b46 commit 74d2f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_contract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ echo Deploying contract to temporary accountId
echo Calling functions
../bin/near call $testaccount setGreeting '{"message":"TEST"}' --accountId=test.near

RESULT=$(../bin/near view $testaccount welcome '{"account_id":"test.near"}' --accountId=test.near)
RESULT=$(../bin/near view $testaccount getGreeting '{"account_id":"test.near"}' --accountId=test.near)
TEXT=$RESULT
EXPECTED='TEST test.near'
if [[ ! $TEXT =~ .*$EXPECTED.* ]]; then
echo FAILURE Unexpected output from near call: $RESULT
exit 1
fi
fi

0 comments on commit 74d2f17

Please sign in to comment.