Skip to content

Commit

Permalink
fix pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayheck committed May 21, 2024
1 parent 3dbfaaf commit 2e8c51e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (config.useLocalBrowsers) {
const BROWSER_OPENING_DELAY = 4000;

let mockProvider = null;
const needSkip = config.hasBrowser('edge');
const needSkip = config.hasBrowser('edge');

const mockProviderPlugin = Object.assign({}, chromeBrowserProvider, {
state: {},
Expand Down
3 changes: 1 addition & 2 deletions test/functional/fixtures/regression/gh-2568/test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const expect = require('chai').expect;

function removeWhitespaces (str) {
if (!str) return '';
return str.replace(/\s+|\n/g, ' ').trim();
return str?.replace(/\s+|\n/g, ' ').trim() ?? '';
}

function assertSelectorCallstack (actual, expected) {
Expand Down

0 comments on commit 2e8c51e

Please sign in to comment.