mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: replace Object.assign with object spread syntax (#34739)
This commit is contained in:
@@ -63,7 +63,7 @@ describe('shell module', () => {
|
||||
expect(shell.readShortcutLink(tmpShortcut)).to.deep.equal(shortcutOptions);
|
||||
const change = { target: 'D:\\' };
|
||||
expect(shell.writeShortcutLink(tmpShortcut, 'update', change)).to.be.true();
|
||||
expect(shell.readShortcutLink(tmpShortcut)).to.deep.equal(Object.assign(shortcutOptions, change));
|
||||
expect(shell.readShortcutLink(tmpShortcut)).to.deep.equal({ ...shortcutOptions, ...change });
|
||||
});
|
||||
|
||||
it('replaces the shortcut', () => {
|
||||
|
||||
Reference in New Issue
Block a user