build: update typescript and webpack (#22776)
This commit is contained in:
parent
f1a0d5e811
commit
aa15a2cc03
5 changed files with 211 additions and 159 deletions
|
@ -83,13 +83,13 @@ describe('BrowserWindow with affinity module', () => {
|
|||
testAffinityProcessIds(`BrowserWindow with an affinity '${myAffinityName}' and sandbox enabled`, { sandbox: true })
|
||||
testAffinityProcessIds(`BrowserWindow with an affinity '${myAffinityName}' and nativeWindowOpen enabled`, { nativeWindowOpen: true })
|
||||
|
||||
describe(`BrowserWindow with an affinity : nodeIntegration=false`, () => {
|
||||
describe('BrowserWindow with an affinity : nodeIntegration=false', () => {
|
||||
const preload = path.join(fixtures, 'module', 'send-later.js')
|
||||
const affinityWithNodeTrue = 'affinityWithNodeTrue'
|
||||
const affinityWithNodeFalse = 'affinityWithNodeFalse'
|
||||
|
||||
function testNodeIntegration (present: boolean) {
|
||||
return new Promise((resolve) => {
|
||||
return new Promise<void>((resolve) => {
|
||||
ipcMain.once('answer', (event, typeofProcess, typeofBuffer) => {
|
||||
if (present) {
|
||||
expect(typeofProcess).to.not.equal('undefined')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue