fix(core): update

This commit is contained in:
Philipp Kunz 2020-07-25 15:53:45 +00:00
parent 4bd3c65588
commit f66a5a80e1

View File

@ -16,7 +16,7 @@ export const testFire = <
A extends plugins.agSdk.AAgHandler<any>, A extends plugins.agSdk.AAgHandler<any>,
T extends plugins.typedrequestInterfaces.ITypedRequest T extends plugins.typedrequestInterfaces.ITypedRequest
>( >(
slug: A['slug'], slugArg: A['slug'],
methodArg: T['method'], methodArg: T['method'],
requestArg: T['request'] requestArg: T['request']
) => { ) => {
@ -27,7 +27,7 @@ export const testFire = <
throw new Error('you need to start the testServer first!'); throw new Error('you need to start the testServer first!');
} }
const typedRequest = new plugins.typedrequest.TypedRequest<T>( const typedRequest = new plugins.typedrequest.TypedRequest<T>(
`http://localhost:${testServer.server.options.port}`, `http://localhost:${testServer.server.options.port}/${slugArg}`,
methodArg methodArg
); );
const responsePromise = typedRequest.fire(requestArg); const responsePromise = typedRequest.fire(requestArg);