You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will write test code like this: dioAdapter.onPost("some_route", (server) => server.reply(...), data: Matchers.any);
I am very much bugged that I do not know the type of 'server'. Moreover, I don't really know what to pass to server.reply()!
What I've tried:
I've looked through the relevant docs, but I see no page on MockServerCallback. I've looked into the code and tried declaring the type of the callback that I pass into onPost(), but my linter won't allow me.
The text was updated successfully, but these errors were encountered:
I think the problem is not that the callback is not strongly typed because it is (it is defined as a typedef of type void Function(MockServer server);), but rather than MockServerCallback and MockServer types are not exposed by the package.
In my case I would like to reuse the MockServerCallback function between multiple adapter methods but I can't because of types not being exposed.
I think the problem is not that the callback is not strongly typed because it is (it is defined as a typedef of type void Function(MockServer server);), but rather than MockServerCallback and MockServer types are not exposed by the package.
In my case I would like to reuse the MockServerCallback function between multiple adapter methods but I can't because of types not being exposed.
I will write test code like this:
dioAdapter.onPost("some_route", (server) => server.reply(...), data: Matchers.any);
I am very much bugged that I do not know the type of 'server'. Moreover, I don't really know what to pass to server.reply()!
What I've tried:
I've looked through the relevant docs, but I see no page on MockServerCallback. I've looked into the code and tried declaring the type of the callback that I pass into onPost(), but my linter won't allow me.
The text was updated successfully, but these errors were encountered: