JSON
This commit is contained in:
@@ -20,7 +20,7 @@ describe('Hello World worker', () => {
|
||||
|
||||
it('_', async () => {
|
||||
const response = await SELF.fetch('http://example.com');
|
||||
const responseText = await response.text();
|
||||
console.debug(`responseText :>> `, responseText);
|
||||
const jsonResponse = await response.json();
|
||||
console.debug(`jsonResponse :>> `, jsonResponse);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user