Skip to content

Commit

Permalink
Clean up command opts
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Jun 24, 2023
1 parent 715c04e commit 8c05f29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/visual-diff-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ export function visualDiff({ updateGoldens = false, runSubset = false } = {}) {
}
}

const opts = payload.opts || {};
opts.margin = opts.margin || DEFAULT_MARGIN;
const opts = { margin: DEFAULT_MARGIN, ...payload.opts };

const page = session.browser.getPage(session.id);
await page.screenshot({
Expand Down

0 comments on commit 8c05f29

Please sign in to comment.