mirror of
https://github.com/henrygd/beszel.git
synced 2026-08-19 16:57:47 +02:00
fix(tests): align error message after merging #2011
This commit is contained in:
@@ -51,11 +51,18 @@ func TestNewWebSocketClient(t *testing.T) {
|
|||||||
errorMsg: "HUB_URL environment variable not set",
|
errorMsg: "HUB_URL environment variable not set",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "invalid URL",
|
name: "malformed URL",
|
||||||
hubURL: "ht\ttp://invalid",
|
hubURL: "ht\ttp://invalid",
|
||||||
token: "test-token",
|
token: "test-token",
|
||||||
expectError: true,
|
expectError: true,
|
||||||
errorMsg: "invalid hub URL",
|
errorMsg: "invalid HUB_URL",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "URL without host",
|
||||||
|
hubURL: "http:/api",
|
||||||
|
token: "test-token",
|
||||||
|
expectError: true,
|
||||||
|
errorMsg: "invalid HUB_URL",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "missing token",
|
name: "missing token",
|
||||||
|
|||||||
Reference in New Issue
Block a user