mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-17 04:50:02 +02:00
src/parse_request_test.go: adding test for debug api.
This commit is contained in:
parent
edb063722b
commit
0349999540
1 changed files with 9 additions and 0 deletions
|
|
@ -105,3 +105,12 @@ func TestParseEosioContractWithBlockTime(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
assert.Equal(t, expected, api)
|
||||
}
|
||||
|
||||
func TestParseDebugApi(t *testing.T) {
|
||||
|
||||
expected := api.NewDebugApi("some_api_call")
|
||||
|
||||
api, err := ParseRequest("debug|some_api_call")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, expected, api)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue