From cca70e3eb49c2230739d10f828f99252b913fda8 Mon Sep 17 00:00:00 2001 From: Sri Harsha Date: Wed, 3 Apr 2024 18:21:04 +0530 Subject: [PATCH] [JS] lint fixes --- javascript/node/selenium-webdriver/bidi/partialCookie.js | 2 +- javascript/node/selenium-webdriver/bidi/scriptManager.js | 3 +-- javascript/node/selenium-webdriver/bidi/scriptTypes.js | 2 -- .../node/selenium-webdriver/test/bidi/browsingcontext_test.js | 3 ++- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/javascript/node/selenium-webdriver/bidi/partialCookie.js b/javascript/node/selenium-webdriver/bidi/partialCookie.js index 5c74a0fc8a374..267da01d71187 100644 --- a/javascript/node/selenium-webdriver/bidi/partialCookie.js +++ b/javascript/node/selenium-webdriver/bidi/partialCookie.js @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -const { BytesValue, SameSite } = require('./networkTypes') +const { BytesValue } = require('./networkTypes') /** * Represents a partial cookie used to set cookies. diff --git a/javascript/node/selenium-webdriver/bidi/scriptManager.js b/javascript/node/selenium-webdriver/bidi/scriptManager.js index 11e4181bde5a4..4f0a680d971bf 100644 --- a/javascript/node/selenium-webdriver/bidi/scriptManager.js +++ b/javascript/node/selenium-webdriver/bidi/scriptManager.js @@ -23,10 +23,9 @@ const { } = require('./evaluateResult') const { Message } = require('./scriptTypes') const { RealmInfo, RealmType, WindowRealmInfo } = require('./realmInfo') -const { RemoteValue, LocalValue } = require('./protocolValue') +const { RemoteValue } = require('./protocolValue') const { Source } = require('./scriptTypes') const { WebDriverError } = require('../lib/error') -const { ResultOwnership } = require('./resultOwnership') /** * Represents class to run events and commands of Script module. diff --git a/javascript/node/selenium-webdriver/bidi/scriptTypes.js b/javascript/node/selenium-webdriver/bidi/scriptTypes.js index ee2b9ce9827c2..36b4619018ad6 100644 --- a/javascript/node/selenium-webdriver/bidi/scriptTypes.js +++ b/javascript/node/selenium-webdriver/bidi/scriptTypes.js @@ -15,8 +15,6 @@ // specific language governing permissions and limitations // under the License. -const { RemoteValue } = require('./protocolValue') - /** * Represents a message received through a channel. * Described in https://w3c.github.io/webdriver-bidi/#event-script-message. diff --git a/javascript/node/selenium-webdriver/test/bidi/browsingcontext_test.js b/javascript/node/selenium-webdriver/test/bidi/browsingcontext_test.js index d2b7e7a2d5407..1ba8dfe6e7300 100644 --- a/javascript/node/selenium-webdriver/test/bidi/browsingcontext_test.js +++ b/javascript/node/selenium-webdriver/test/bidi/browsingcontext_test.js @@ -454,7 +454,8 @@ suite( const window1 = await BrowsingContext(driver, { browsingContextId: id, }) - const window2 = await BrowsingContext(driver, { type: 'window' }) + + await BrowsingContext(driver, { type: 'window' }) const res = await window1.getTopLevelContexts() assert.equal(res.length, 2)