mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
fix: EventSource undefined in Renderer/Worker (#44475)
This commit is contained in:
@@ -162,6 +162,15 @@ describe('node feature', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('EventSource', () => {
|
||||
itremote('works correctly when nodeIntegration is enabled in the renderer', () => {
|
||||
const es = new EventSource('https://example.com');
|
||||
expect(es).to.have.property('url').that.is.a('string');
|
||||
expect(es).to.have.property('readyState').that.is.a('number');
|
||||
expect(es).to.have.property('withCredentials').that.is.a('boolean');
|
||||
});
|
||||
});
|
||||
|
||||
describe('fetch', () => {
|
||||
itremote('works correctly when nodeIntegration is enabled in the renderer', async (fixtures: string) => {
|
||||
const file = require('node:path').join(fixtures, 'hello.txt');
|
||||
|
||||
Reference in New Issue
Block a user