Skip to content

Commit

Permalink
update tests/changelog.bats (fixes #2095) (#2099)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
rjpadilla and dogi authored Mar 18, 2021
1 parent 08686d6 commit a70a1c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.25.28",
"version": "1.25.29",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down
13 changes: 9 additions & 4 deletions tests/changelog.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
load test-helper

@test "$clinom changelog" {
cp "/usr/lib/node_modules/@treehouses/cli/CHANGELOG.md" ../.
run "${clicmd}" changelog
assert_success
rm "../CHANGELOG.md"
if [ ! -f "../CHANGELOG.md" ]; then
cp "/usr/lib/node_modules/@treehouses/cli/CHANGELOG.md" ../.
run "${clicmd}" changelog
assert_success
rm "../CHANGELOG.md"
else
run "${clicmd}" changelog
assert_success
fi
}

0 comments on commit a70a1c4

Please sign in to comment.