Skip to content

Commit 54f98f2

Browse files
author
David Haeffner
committed
Added a missing paren to one of the commands in the select window util function
1 parent bb3d289 commit 54f98f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/code-export-javascript-mocha/__test__/src/__snapshots__/index.spec.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('Default Suite', function() {
169169
const handlesThen = vars[\\"windowHandles\\"]
170170
const handlesNow = await driver.getAllWindowHandles()
171171
if (handlesNow.length > handlesThen.length) {
172-
return handlesNow.find(handle => (!handlesThen.includes(handle))
172+
return handlesNow.find(handle => (!handlesThen.includes(handle)))
173173
}
174174
throw new Error(\\"New window did not appear before timeout\\")
175175
}
@@ -209,7 +209,7 @@ describe('Default Suite', function() {
209209
const handlesThen = vars[\\"windowHandles\\"]
210210
const handlesNow = await driver.getAllWindowHandles()
211211
if (handlesNow.length > handlesThen.length) {
212-
return handlesNow.find(handle => (!handlesThen.includes(handle))
212+
return handlesNow.find(handle => (!handlesThen.includes(handle)))
213213
}
214214
throw new Error(\\"New window did not appear before timeout\\")
215215
}
@@ -317,7 +317,7 @@ describe('select window', function() {
317317
const handlesThen = vars[\\"windowHandles\\"]
318318
const handlesNow = await driver.getAllWindowHandles()
319319
if (handlesNow.length > handlesThen.length) {
320-
return handlesNow.find(handle => (!handlesThen.includes(handle))
320+
return handlesNow.find(handle => (!handlesThen.includes(handle)))
321321
}
322322
throw new Error(\\"New window did not appear before timeout\\")
323323
}

packages/code-export-javascript-mocha/src/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function emitWaitForWindow() {
162162
{
163163
level: 1,
164164
statement:
165-
'return handlesNow.find(handle => (!handlesThen.includes(handle))',
165+
'return handlesNow.find(handle => (!handlesThen.includes(handle)))',
166166
},
167167
{ level: 0, statement: '}' },
168168
{

0 commit comments

Comments
 (0)