Skip to content

Commit

Permalink
Merge pull request #311 from ardriveapp/PE-1871_Update_version_tests
Browse files Browse the repository at this point in the history
test(version): Add test for flag interaction
  • Loading branch information
agsuy authored Aug 11, 2022
2 parents 3fcb72a + 8a17b46 commit fa28ca8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bats_test/version/version.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ EXPECTED_VERSION=$(jq -r '.version' ./package.json)
run -0 yarn ardrive tx-status -V
[[ "$output" = "$EXPECTED_VERSION" ]]
}

@test "'ardrive <SOME COMMAND> --version' overrides other flags" {
run -0 yarn ardrive --help --version
[[ "$output" = "$EXPECTED_VERSION" ]]
}

This comment has been minimized.

Copy link
@fedellen

fedellen Aug 11, 2022

Collaborator

nit: add "files.insertFinalNewline": true, to vscode settings.json

0 comments on commit fa28ca8

Please sign in to comment.