Skip to content

Commit 609a892

Browse files
committed
test: fix tests that require a query response
1 parent 7d71276 commit 609a892

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/__testutils__/testInvalidRefRetry.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,11 @@ export const testInvalidRefRetry = (args: TestInvalidRefRetryArgs): void => {
171171
it("throttles log", async (ctx) => {
172172
const client = createTestClient({ ctx })
173173
const badRef = ctx.mock.api.ref().ref
174+
const queryResponse = ctx.mock.api.query({
175+
documents: [ctx.mock.value.document()],
176+
})
174177

175-
mockPrismicRestAPIV2({ ctx })
178+
mockPrismicRestAPIV2({ ctx, queryResponse })
176179

177180
const endpoint = new URL(
178181
"documents/search",

0 commit comments

Comments
 (0)