diff --git a/src/commands/gateway-status/helpers.test.ts b/src/commands/gateway-status/helpers.test.ts index 92cb30e64b3..d13b08fb65c 100644 --- a/src/commands/gateway-status/helpers.test.ts +++ b/src/commands/gateway-status/helpers.test.ts @@ -217,10 +217,9 @@ describe("resolveAuthForTarget", () => { {}, ); - expect(auth.diagnostics).toContain( + expect(auth.diagnostics).toStrictEqual([ "gateway.auth.token SecretRef is unresolved (env:default:MISSING_GATEWAY_TOKEN).", - ); - expect(auth.diagnostics?.join("\n")).not.toContain("missing or empty"); + ]); }, ); });