Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
poyoho committed Feb 27, 2022
1 parent 37fc2cf commit 7db9e6a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/playground/worker/__tests__/worker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ test('inlined', async () => {
await untilUpdated(() => page.textContent('.pong-inline'), 'pong')
})

test('classic worker is run', async () => {
await untilUpdated(() => page.textContent('.classic-worker'), 'A classic')
await untilUpdated(
() => page.textContent('.classic-shared-worker'),
'A classic'
)
})

const waitSharedWorkerTick = (
(resolvedSharedWorkerCount: number) => async (page: Page) => {
await untilUpdated(async () => {
Expand Down Expand Up @@ -96,3 +88,8 @@ if (isBuild) {
})
})
}

test('classic worker is run', async () => {
expect(await page.textContent('.classic-worker')).toMatch('A classic')
expect(await page.textContent('.classic-shared-worker')).toMatch('A classic')
})

0 comments on commit 7db9e6a

Please sign in to comment.