Skip to content

Commit e3781be

Browse files
committed
[js] Fix linting
1 parent 64de34a commit e3781be

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

javascript/node/selenium-webdriver/test/devtools_test.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,18 @@ suite(
117117
})
118118

119119
describe('Network Interception', function () {
120-
ignore(
121-
browsers(Browser.SAFARI)).it('Allows network requests to be captured and mocked', async function () {
122-
const connection = await driver.createCDPConnection('page')
123-
let url = fileServer.whereIs('/cheese')
124-
let httpResponse = new HttpResponse(url)
125-
httpResponse.addHeaders('Content-Type', 'UTF-8')
126-
httpResponse.body = 'sausages'
127-
await driver.onIntercept(connection, httpResponse, async function () {
128-
let body = await driver.getPageSource()
129-
assert.strictEqual(body.includes('sausages'), true, `Body contains: ${body}`)
130-
})
131-
await driver.get(url)
132-
},
133-
)
120+
ignore(browsers(Browser.SAFARI)).it('Allows network requests to be captured and mocked', async function () {
121+
const connection = await driver.createCDPConnection('page')
122+
let url = fileServer.whereIs('/cheese')
123+
let httpResponse = new HttpResponse(url)
124+
httpResponse.addHeaders('Content-Type', 'UTF-8')
125+
httpResponse.body = 'sausages'
126+
await driver.onIntercept(connection, httpResponse, async function () {
127+
let body = await driver.getPageSource()
128+
assert.strictEqual(body.includes('sausages'), true, `Body contains: ${body}`)
129+
})
130+
await driver.get(url)
131+
})
134132
})
135133
},
136134
{ browsers: ['chrome'] },

0 commit comments

Comments
 (0)