Skip to content

Commit

Permalink
Removing function name
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 committed Jun 17, 2024
1 parent 116b9aa commit 0ea46be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ENV_INFO = `${playwrightPkg.name}/${playwrightPkg.version}`;
const log = utils.logger('playwright');

// Take a DOM snapshot and post it to the snapshot endpoint
const percySnapshot = async function percySnapshot(page, name, options) {
const percySnapshot = async function(page, name, options) {
if (!page) throw new Error('A Playwright `page` object is required.');
if (!name) throw new Error('The `name` argument is required.');
if (!(await utils.isPercyEnabled())) return;
Expand Down Expand Up @@ -42,7 +42,7 @@ const percySnapshot = async function percySnapshot(page, name, options) {
};

// Takes Playwright screenshot with Automate
const percyScreenshot = async function percyScreenshot(page, name, options) {
const percyScreenshot = async function(page, name, options) {
if (!page) throw new Error('A Playwright `page` object is required.');
if (!name) throw new Error('The `name` argument is required.');
if (!(await utils.isPercyEnabled())) return;
Expand Down

0 comments on commit 0ea46be

Please sign in to comment.