test: check actual output generated from printToPDF (#21949)
This commit is contained in:
parent
1f61b3a3eb
commit
23382e6e08
5 changed files with 1432 additions and 1 deletions
|
@ -2,11 +2,18 @@ import { expect } from 'chai'
|
|||
import { deprecate } from 'electron'
|
||||
|
||||
describe('deprecate', () => {
|
||||
let throwing: boolean
|
||||
|
||||
beforeEach(() => {
|
||||
throwing = process.throwDeprecation
|
||||
deprecate.setHandler(null)
|
||||
process.throwDeprecation = true
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
process.throwDeprecation = throwing
|
||||
})
|
||||
|
||||
it('allows a deprecation handler function to be specified', () => {
|
||||
const messages: string[] = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue