typo fix! and using object assign where appropriate

This commit is contained in:
Jamie Vigliotta 2020-07-13 14:42:01 -07:00
parent e1d0c22071
commit 79c4dc9272
2 changed files with 2 additions and 6 deletions

View File

@ -72,7 +72,7 @@ describe("The Remove Action plugin", () => {
resetApplicationState(openmct);
});
it("should be definied", () => {
it("should be defined", () => {
expect(RemoveActionPlugin).toBeDefined();
});

View File

@ -166,11 +166,7 @@ export function getMockObjects(opts = {}) {
if(opts.overwrite) {
for(let mock in requestedMocks) {
if(opts.overwrite[mock]) {
for(let key in opts.overwrite[mock]) {
if (Object.prototype.hasOwnProperty.call(opts.overwrite[mock], key)) {
requestedMocks[mock][key] = opts.overwrite[mock][key];
}
}
requestedMocks[mock] = Object.assign(requestedMocks[mock], opts.overwrite[mock]);
}
}
}