frontend: update API test to adapt to changes in #118

This commit is contained in:
Lan Tian
2025-04-23 21:12:40 -07:00
parent b9094d3d6c
commit 0d5337508b

View File

@@ -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) {