fix(core): update
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user