From 94d8820e14da6f6f581ff1dedd6c72ee4698baf9 Mon Sep 17 00:00:00 2001 From: clux Date: Mon, 4 Dec 2023 04:15:23 +0000 Subject: [PATCH] fix tests Signed-off-by: clux --- test/install.test.bats | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/install.test.bats b/test/install.test.bats index 5cf27d1..ac6fe26 100644 --- a/test/install.test.bats +++ b/test/install.test.bats @@ -142,13 +142,14 @@ exists() { yq --help | rg "Rust implementation" exists rust-analyzer - hx --health rust | rg "Binary" | rg -v "not found" - hx --health markdown | rg "Binary" | rg -v "not found" - hx --health bash | rg "Binary" | rg -v "not found" + hx --health rust | rg -A1 "language servers" | rg -q "✓" + hx --health markdown | rg -A1 "language servers" | rg -q "✓" + hx --health bash | rg -A1 "language servers" | rg -q "✓" + if [[ "${OSTYPE}" =~ "darwin" ]]; then - hx --health hcl | rg "Binary" | rg -v "not found" + hx --health hcl | rg -A1 "language servers" | rg -q "✓" fi - hx --health yaml | rg "Binary" | rg -v "not found" + hx --health yaml | rg -A1 "language servers" | rg -q "✓" # New stable every 6th Thursday, ensure we're not more than 7 weeks behind if [[ "${OSTYPE}" =~ "darwin" ]]; then