Skip to content

Commit

Permalink
use Object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
rhys williams committed May 29, 2018
1 parent f238bec commit 94f2331
Showing 1 changed file with 2 additions and 4 deletions.
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

0 comments on commit 94f2331

Please sign in to comment.