chore: convert rpc-server to ts (#24271)

This commit is contained in:
Jeremy Rose 2020-06-25 10:19:08 -07:00 committed by GitHub
parent 9b4572de44
commit 605e50269e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 26 deletions

View file

@ -2213,7 +2213,7 @@ describe('BrowserWindow module', () => {
emittedOnce(app, 'web-contents-created'),
emittedOnce(ipcMain, 'answer')
]);
const webPreferences = (childWebContents as any).getLastWebPreferences();
const webPreferences = childWebContents.getLastWebPreferences();
expect(webPreferences.foo).to.equal('bar');
});
@ -2530,7 +2530,7 @@ describe('BrowserWindow module', () => {
emittedOnce(app, 'web-contents-created'),
emittedOnce(ipcMain, 'answer')
]);
const webPreferences = (childWebContents as any).getLastWebPreferences();
const webPreferences = childWebContents.getLastWebPreferences();
expect(webPreferences.foo).to.equal('bar');
});