refactor: use object spread operator rather than merge (#15426)

This commit is contained in:
Dzmitry Shylovich
2017-03-25 00:45:33 +03:00
committed by Victor Berchet
parent 8785b2bf6d
commit c17b912eb9
6 changed files with 9 additions and 24 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {ɵisPromise as isPromise, ɵmerge as merge} from '@angular/core';
import {ɵisPromise as isPromise} from '@angular/core';
import {global} from '@angular/core/src/util';
import {AsyncTestCompleter} from './async_test_completer';
@ -196,7 +196,7 @@ export class SpyObject {
object = new SpyObject();
}
const m = merge(config, overrides);
const m = {...config, ...overrides};
Object.keys(m).forEach(key => { object.spy(key).and.returnValue(m[key]); });
return object;
}