chore: generate
This commit is contained in:
parent
a12d50e15a
commit
476e3fc382
3 changed files with 19 additions and 6 deletions
|
|
@ -30,7 +30,12 @@ test("stops sampling when the session switch fails", async () => {
|
|||
const failure = new Error("switch failed")
|
||||
const context = testPage()
|
||||
|
||||
await expect(measureSessionSwitch(context.page, input(async () => Promise.reject(failure)))).rejects.toBe(failure)
|
||||
await expect(
|
||||
measureSessionSwitch(
|
||||
context.page,
|
||||
input(async () => Promise.reject(failure)),
|
||||
),
|
||||
).rejects.toBe(failure)
|
||||
|
||||
expect(context.stops).toHaveLength(1)
|
||||
})
|
||||
|
|
@ -39,7 +44,12 @@ test("stops sampling when the stable wait fails", async () => {
|
|||
const failure = new Error("stable wait failed")
|
||||
const context = testPage(failure)
|
||||
|
||||
await expect(measureSessionSwitch(context.page, input(async () => {}))).rejects.toBe(failure)
|
||||
await expect(
|
||||
measureSessionSwitch(
|
||||
context.page,
|
||||
input(async () => {}),
|
||||
),
|
||||
).rejects.toBe(failure)
|
||||
|
||||
expect(context.stops).toHaveLength(1)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue