fix(core): update

This commit is contained in:
2024-03-03 10:42:14 +01:00
parent 1f57f1397c
commit cab2d8aa2e
5 changed files with 59 additions and 29 deletions

View File

@ -29,7 +29,7 @@ tap.test('should define a testHandler', async () => {
testTypedRouter.addTypedHandler(testTypedHandler);
});
tap.test('should fire a request', async () => {
tap.skip.test('should fire a request', async () => {
let response = await fetch('http://localhost:3000/typedrequest', {
"method": "POST",
"headers": {
@ -40,7 +40,7 @@ tap.test('should fire a request', async () => {
console.log(await response.text());
});
tap.test('test', async (tools) => {
tap.skip.test('test', async (tools) => {
await tools.delayFor(5000);
})

View File

@ -96,8 +96,8 @@ tap.test('should allow VirtualStreams', async () => {
newRequestingVS.sendData(Buffer.from('hello'));
const data = await generatedRequestingVS.fetchData();
const decodedData = data.toString();
expect(data.toString()).toEqual('hello');
const decodedData = new TextDecoder().decode(data);
expect(decodedData).toEqual('hello');
});
tap.test('should end the server', async (toolsArg) => {