Prepare release v0.2.2.

This commit is contained in:
Sebastian Jeltsch
2024-11-19 14:40:47 +01:00
parent 3fa8f51b8b
commit dbd582275e
2 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
## v0.2.2
* Enable "web" APIs in JS runtime.
* Add "Facebook" and "Microsoft" OAuth providers.
## v0.2.1
* Allow setting the number V8 isolates (i.e. JS runtime threads) via

View File

@@ -192,10 +192,13 @@ test("JS runtime", async () => {
},
};
const json = await (await fetch(`${address}/json`)).json();
const jsonUrl = `${address}/json`;
const json = await (await fetch(jsonUrl)).json();
expect(json).toMatchObject(expected);
const fetchUrl = `${address}/json`;
const response = await fetch(`${address}/fetch?url=${encodeURI(fetchUrl)}`);
const response = await fetch(`${address}/fetch?url=${encodeURI(jsonUrl)}`);
expect(await response.json()).toMatchObject(expected);
const errResp = await fetch(`${address}/error`);
expect(errResp.status).equals(status.IM_A_TEAPOT);
});