From 034c085cb1624c50e395e98078a9e1b77779be78 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Fri, 20 Dec 2024 12:53:54 +0100 Subject: [PATCH] Feature flag on paginatedQuery --- e2e/node/e2e.test.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/e2e/node/e2e.test.ts b/e2e/node/e2e.test.ts index 042569a0..0198fd07 100644 --- a/e2e/node/e2e.test.ts +++ b/e2e/node/e2e.test.ts @@ -1770,20 +1770,20 @@ describe(`End-to-end access grant tests for environment [${environment}] `, () = onType.items.length, ); }); + + it("can iterate through pages", async () => { + const pages = paginatedQuery( + {}, + { + fetch: addUserAgent(requestorSession.fetch, TEST_USER_AGENT), + // FIXME add query endpoint discovery check. + queryEndpoint: new URL("query", vcProvider), + }, + ); + for await (const page of pages) { + expect(page.items).not.toHaveLength(0); + } + }); }, ); - - it("can iterate through pages", async () => { - const pages = paginatedQuery( - {}, - { - fetch: addUserAgent(requestorSession.fetch, TEST_USER_AGENT), - // FIXME add query endpoint discovery check. - queryEndpoint: new URL("query", vcProvider), - }, - ); - for await (const page of pages) { - expect(page.items).not.toHaveLength(0); - } - }); });