Skip to content

Commit 313e3a8

Browse files
committed
test(core): add await for async ScreenshotItem API calls
- Add await to fakeService call in task-runner test - Make beforeEach async in freeze-context test - Add await to ScreenshotItem.create calls - Add await to getData call in test assertion
1 parent 78a1338 commit 313e3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/tests/unit-test/task-runner/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const insightFindTask = (shouldThrow?: boolean) => {
2323
await new Promise((resolve) => setTimeout(resolve, 100));
2424
throw new Error('test-error');
2525
}
26-
const insight = fakeService('test-task-runner');
26+
const insight = await fakeService('test-task-runner');
2727
const { element, dump: insightDump } = await insight.locate(
2828
{
2929
prompt: param.prompt,

0 commit comments

Comments
 (0)