Skip to content

Commit

Permalink
docs: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshah98 committed Dec 1, 2023
1 parent 0f433ac commit b6c627e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,15 @@ export async function* takeStorybookSnapshots(percy, callback, { baseUrl, flags
options.domSnapshot = domSnapshot;
// validate without logging to prune all other options
PercyConfig.validate(options, '/snapshot/dom');
// validate without logging to prune all other options
// snapshots are queued and do not need to be awaited on
percy.snapshot({ ...options, widths: [w] });
}
} else {
let { dom, domSnapshot = dom } = yield page.snapshot(options);
options.domSnapshot = domSnapshot;
// validate without logging to prune all other options
PercyConfig.validate(options, '/snapshot/dom');
// validate without logging to prune all other options
// snapshots are queued and do not need to be awaited on
percy.snapshot({ ...options });
}
}
Expand Down

0 comments on commit b6c627e

Please sign in to comment.