test: fix app.dock
for corrected type (#46116)
test: fix app.dock for corrected type Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
5f48031c24
commit
a6fe725dab
3 changed files with 28 additions and 27 deletions
|
@ -2498,12 +2498,12 @@ describe('BrowserWindow module', () => {
|
|||
it('sets the progress', () => {
|
||||
expect(() => {
|
||||
if (process.platform === 'darwin') {
|
||||
app.dock.setIcon(path.join(fixtures, 'assets', 'logo.png'));
|
||||
app.dock?.setIcon(path.join(fixtures, 'assets', 'logo.png'));
|
||||
}
|
||||
w.setProgressBar(0.5);
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
app.dock.setIcon(null as any);
|
||||
app.dock?.setIcon(null as any);
|
||||
}
|
||||
w.setProgressBar(-1);
|
||||
}).to.not.throw();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue