fix(core): update
This commit is contained in:
		@@ -19,9 +19,9 @@ interface ITestReqRes {
 | 
			
		||||
 | 
			
		||||
tap.test('should create a typedHandler', async () => {
 | 
			
		||||
  // lets use the interface in a TypedHandler
 | 
			
		||||
  testTypedHandler = new typedrequest.TypedHandler<ITestReqRes>('hi', async reqArg => {
 | 
			
		||||
  testTypedHandler = new typedrequest.TypedHandler<ITestReqRes>('hi', async (reqArg) => {
 | 
			
		||||
    return {
 | 
			
		||||
      surname: 'wow'
 | 
			
		||||
      surname: 'wow',
 | 
			
		||||
    };
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
@@ -30,7 +30,7 @@ tap.test('should spawn a server to test with', async () => {
 | 
			
		||||
  testServer = new smartexpress.Server({
 | 
			
		||||
    cors: true,
 | 
			
		||||
    forceSsl: false,
 | 
			
		||||
    port: 3000
 | 
			
		||||
    port: 3000,
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
@@ -53,7 +53,7 @@ tap.test('should fire a request', async () => {
 | 
			
		||||
    'hi'
 | 
			
		||||
  );
 | 
			
		||||
  const response = await typedRequest.fire({
 | 
			
		||||
    name: 'really'
 | 
			
		||||
    name: 'really',
 | 
			
		||||
  });
 | 
			
		||||
  console.log('this is the response:');
 | 
			
		||||
  console.log(response);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user