From a70a1c471b78eabe69db28350ed385abc1f0163f Mon Sep 17 00:00:00 2001 From: RJ Padilla Date: Wed, 17 Mar 2021 21:44:08 -0400 Subject: [PATCH] update `tests/changelog.bats` (fixes #2095) (#2099) Co-authored-by: dogi --- package.json | 2 +- tests/changelog.bats | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5a3edcc47b..cbffdf6f97 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/changelog.bats b/tests/changelog.bats index 95dcc2e5c5..6f81c7d0ac 100755 --- a/tests/changelog.bats +++ b/tests/changelog.bats @@ -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 } \ No newline at end of file