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

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Sep 20, 2019
1 parent f8f907e commit c1bfd72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"bin": {
"near": "./bin/near"
},
"devDependencies": {},
"devDependencies": {
"strip-ansi-cli": "^2.0.0"
},
"dependencies": {
"assemblyscript": "github:nearprotocol/assemblyscript",
"bs58": "^4.0.1",
Expand Down
6 changes: 4 additions & 2 deletions test/test_account_operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ echo Create account
../bin/near create_account $testaccount

echo Get account state
RESULT=$(../bin/near state $testaccount)
if [[ $RESULT != *"Account $testaccount"*"amount: '100000000'"* ]]; then
RESULT=$(../bin/near state $testaccount | strip-ansi)
echo $RESULT
EXPECTED=".+Account $testaccount.+amount:.+'100000000'.+ "
if [[ ! "$RESULT" =~ $EXPECTED ]]; then
echo FAILURE Unexpected output from near state
exit 1
fi
Expand Down

0 comments on commit c1bfd72

Please sign in to comment.