frontend: update API test to adapt to changes in #118
This commit is contained in:
@@ -100,7 +100,10 @@ func TestApiSummaryHandlerError(t *testing.T) {
|
|||||||
}
|
}
|
||||||
response := apiSummaryHandler(request)
|
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) {
|
func TestApiWhoisHandler(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user