Skip to content

Commit

Permalink
Added removal of sort function passing to Karma callback. Fixes two…
Browse files Browse the repository at this point in the history
  • Loading branch information
twolfson committed Jul 15, 2020
1 parent 3883acf commit 5a6febd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,13 @@ function KarmaReporter (tc, jasmineEnv) {
// Any errors in top-level afterAll blocks are given here.
handleGlobalErrors(result)

// Remove functions from called back results to avoid IPC errors in Electron
// https://github.com/twolfson/karma-electron/issues/47
let cleanedOrder = Object.assign({}, result.order);
delete cleanedOrder.sort;

tc.complete({
order: result.order,
order: cleanedOrder,
coverage: window.__coverage__
})
}
Expand Down

0 comments on commit 5a6febd

Please sign in to comment.