Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use Object.assign
  • Loading branch information
rhys williams committed May 29, 2018
commit 94f2331c6e8e8eef1e10376ed3f81935ea106fc1
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ describe('onRunComplete', () => {
].reduce((c, f) => {
const file = path.resolve(f[0]);
const override = f[1];
c[file] = new CoverageSummary({
...covSummary,
...override,
});
const obj = Object.assign({}, covSummary, override);
c[file] = new CoverageSummary(obj);
return c;
}, {});

Expand Down