fix(core): update
This commit is contained in:
parent
4bd3c65588
commit
f66a5a80e1
@ -16,7 +16,7 @@ export const testFire = <
|
||||
A extends plugins.agSdk.AAgHandler<any>,
|
||||
T extends plugins.typedrequestInterfaces.ITypedRequest
|
||||
>(
|
||||
slug: A['slug'],
|
||||
slugArg: A['slug'],
|
||||
methodArg: T['method'],
|
||||
requestArg: T['request']
|
||||
) => {
|
||||
@ -27,7 +27,7 @@ export const testFire = <
|
||||
throw new Error('you need to start the testServer first!');
|
||||
}
|
||||
const typedRequest = new plugins.typedrequest.TypedRequest<T>(
|
||||
`http://localhost:${testServer.server.options.port}`,
|
||||
`http://localhost:${testServer.server.options.port}/${slugArg}`,
|
||||
methodArg
|
||||
);
|
||||
const responsePromise = typedRequest.fire(requestArg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user