Initial Move from Azure DevOps to GitHub

This commit is contained in:
Steve Faulkner
2020-05-25 21:30:55 -05:00
commit 36581fb6d9
986 changed files with 195242 additions and 0 deletions

View 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();
});
});