mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-09 04:25:57 +00:00
Initial Move from Azure DevOps to GitHub
This commit is contained in:
20
src/Common/IteratorUtilities.test.ts
Normal file
20
src/Common/IteratorUtilities.test.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { nextPage } from "./IteratorUtilities";
|
||||
|
||||
describe("nextPage", () => {
|
||||
it("returns results for the next page", async () => {
|
||||
const fakeIterator = {
|
||||
fetchNext: () =>
|
||||
Promise.resolve({
|
||||
resources: [],
|
||||
hasMoreResults: false,
|
||||
continuation: "foo",
|
||||
queryMetrics: {},
|
||||
requestCharge: 1,
|
||||
headers: {},
|
||||
activityId: "foo"
|
||||
})
|
||||
};
|
||||
|
||||
expect(await nextPage(fakeIterator, 10)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user