mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: fix app.dock for corrected type (#46110)
test: fix app.dock for corrected type
This commit is contained in:
@@ -2499,12 +2499,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();
|
||||
|
||||
Reference in New Issue
Block a user