fix: set prototype names on gin::Constructible
classes (#39006)
* fix: set prototype names on gin::Constructible classes * test: add tests
This commit is contained in:
parent
56b5c00312
commit
c7bdd907d7
23 changed files with 71 additions and 15 deletions
|
@ -40,6 +40,10 @@ describe('BrowserView module', () => {
|
|||
expect(webContents.getAllWebContents()).to.have.length(0);
|
||||
});
|
||||
|
||||
it('sets the correct class name on the prototype', () => {
|
||||
expect(BrowserView.prototype.constructor.name).to.equal('BrowserView');
|
||||
});
|
||||
|
||||
it('can be created with an existing webContents', async () => {
|
||||
const wc = (webContents as typeof ElectronInternal.WebContents).create({ sandbox: true });
|
||||
await wc.loadURL('about:blank');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue