diff --git a/v1/errors_test.go b/v1/errors_test.go index 2c4bb2f..81cb600 100644 --- a/v1/errors_test.go +++ b/v1/errors_test.go @@ -64,3 +64,9 @@ func TestNewServerError(t *testing.T) { assert.NotNil(t, err.Response) } } + +func TestAsClientError(t *testing.T) { + assert.Nil(t, AsClientError(nil)) + assert.Nil(t, AsClientError(errors.New("arbitrary"))) + assert.NotNil(t, AsClientError(NewCriticalHTTPError(errors.New("arbitrary")))) +}