Skip to content

Commit

Permalink
[JS] lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha509 committed Apr 3, 2024
1 parent baf6116 commit cca70e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/bidi/partialCookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions javascript/node/selenium-webdriver/bidi/scriptManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions javascript/node/selenium-webdriver/bidi/scriptTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cca70e3

Please sign in to comment.