mirror of
https://github.com/trailbaseio/trailbase.git
synced 2025-12-30 06:09:48 -06:00
Prepare release v0.2.2.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user