fix(core): update

This commit is contained in:
2022-03-24 20:02:58 +01:00
parent 309c282379
commit 2384fc1b76
10 changed files with 6890 additions and 14900 deletions

View File

@ -1,6 +1,6 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as typedrequest from '../ts/index';
import * as typedrequest from '../ts/index.js';
let testTypedHandler: typedrequest.TypedHandler<ITestReqRes>;

View File

@ -1,7 +1,7 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartexpress from '@pushrocks/smartexpress';
import * as typedrequest from '../ts/index';
import * as typedrequest from '../ts/index.js';
let testServer: smartexpress.Server;
let testTypedHandler: typedrequest.TypedHandler<ITestReqRes>;
@ -57,7 +57,7 @@ tap.test('should fire a request', async () => {
});
console.log('this is the response:');
console.log(response);
expect(response.surname).to.equal('wow');
expect(response.surname).toEqual('wow');
});
tap.test('should end the server', async () => {