From 97638d9de192e953f4ee1f87fb21ec776757b9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20L=C3=B3pez?= Date: Mon, 8 Apr 2024 13:02:16 +0200 Subject: [PATCH] Added tests --- tests/test.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test.bats b/tests/test.bats index b41afac..9b7174a 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -12,9 +12,9 @@ setup() { } health_checks() { - # Do something useful here that verifies the add-on - # ddev exec "curl -s elasticsearch:9200" | grep "${PROJNAME}-elasticsearch" - ddev exec "curl -s https://localhost:443/" + output = ddev pa11y --help + # Check if the output contains "Healthcheck passed!" + [[ $output == *"Usage: pa11y"* ]] } teardown() {