From 0ea46beea2aac8d53efbee474c4418560a686f4c Mon Sep 17 00:00:00 2001 From: rishigupta1599 Date: Mon, 17 Jun 2024 21:16:09 +0530 Subject: [PATCH] Removing function name --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index fbe97a0..0477fd7 100644 --- a/index.js +++ b/index.js @@ -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; @@ -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;