Skip to content

Commit

Permalink
Feature flag on paginatedQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux committed Dec 20, 2024
1 parent c51805b commit 034c085
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions e2e/node/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
});

0 comments on commit 034c085

Please sign in to comment.