From 0d5337508b409a3b9261a4b2eefc23c831bcc2a3 Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Wed, 23 Apr 2025 21:12:40 -0700 Subject: [PATCH] frontend: update API test to adapt to changes in #118 --- frontend/api_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/api_test.go b/frontend/api_test.go index d985226..56caa60 100644 --- a/frontend/api_test.go +++ b/frontend/api_test.go @@ -100,7 +100,10 @@ func TestApiSummaryHandlerError(t *testing.T) { } response := apiSummaryHandler(request) - assert.Equal(t, response.Error, "Mock backend error") + assert.Equal(t, response.Error, "") + + summary := response.Result[0].(*apiSummaryResultPair) + assert.Equal(t, summary.Error, "Mock backend error") } func TestApiWhoisHandler(t *testing.T) {