feat: remove deprecated base::Value-based serialization (#21560)
* feat: remove deprecated base::Value-based serialization * add note to breaking-changes
This commit is contained in:
parent
cc8bf12351
commit
1cac62f0a2
5 changed files with 40 additions and 120 deletions
|
@ -48,11 +48,12 @@ function makeWindow () {
|
|||
before(async () => {
|
||||
w = new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, enableRemoteModule: true } })
|
||||
await w.loadURL('about:blank')
|
||||
await w.webContents.executeJavaScript(`
|
||||
await w.webContents.executeJavaScript(`{
|
||||
const chai_1 = window.chai_1 = require('chai')
|
||||
chai_1.use(require('chai-as-promised'))
|
||||
chai_1.use(require('dirty-chai'))
|
||||
`)
|
||||
null
|
||||
}`)
|
||||
})
|
||||
after(closeAllWindows)
|
||||
return () => w
|
||||
|
@ -63,11 +64,12 @@ function makeEachWindow () {
|
|||
beforeEach(async () => {
|
||||
w = new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, enableRemoteModule: true } })
|
||||
await w.loadURL('about:blank')
|
||||
await w.webContents.executeJavaScript(`
|
||||
await w.webContents.executeJavaScript(`{
|
||||
const chai_1 = window.chai_1 = require('chai')
|
||||
chai_1.use(require('chai-as-promised'))
|
||||
chai_1.use(require('dirty-chai'))
|
||||
`)
|
||||
null
|
||||
}`)
|
||||
})
|
||||
afterEach(closeAllWindows)
|
||||
return () => w
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue