chore: replace Object.assign with object spread syntax (#34739)
This commit is contained in:
parent
ba4893c248
commit
e2c58d164d
8 changed files with 27 additions and 21 deletions
|
@ -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', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue