Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Jun 3, 2024
1 parent 10de9d9 commit fca1a0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test.bats
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
setup() {
set -eu -o pipefail
export DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )/.."
export TESTDIR=~/tmp/test-addon-backstop
export TESTDIR=~/tmp/test-addon-backstopjs
mkdir -p $TESTDIR
export PROJNAME=test-addon-backstop
export PROJNAME=test-addon-backstopjs
export DDEV_NON_INTERACTIVE=true
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 || true
cd "${TESTDIR}"
Expand All @@ -26,12 +26,12 @@ teardown() {
ddev restart

# backstop is installed and can show its version
ddev backstop version | grep 'Command "version" successfully executed'
ddev backstopjs version | grep 'Command "version" successfully executed'

# openReport and remote commands show an error message
set +o pipefail
ddev backstop openReport | grep -q 'This does not work for backstop in ddev'
ddev backstop remote | grep -q 'This does not work for backstop in ddev'
ddev backstopjs openReport | grep -q 'This does not work for backstop in ddev'
ddev backstopjs remote | grep -q 'This does not work for backstop in ddev'
}

#@test "install from release" {
Expand Down

0 comments on commit fca1a0f

Please sign in to comment.