Skip to content

Commit

Permalink
remove unused vars in unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
  • Loading branch information
traeok committed Jan 14, 2025
1 parent 54141b9 commit e2d8735
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ describe("z/OS Files - List", () => {

it("should use X-IBM-Max-Items to limit the number of members returned for a data set", async () => {
const maxLength = 100;
const response = await List.allMembers(dummySession, dsname, { maxLength });
await List.allMembers(dummySession, dsname, { maxLength });

expect(expectStringSpy).toHaveBeenCalledTimes(1);
expect(expectStringSpy).toHaveBeenCalledWith(dummySession, endpoint,
[ZosmfHeaders.ACCEPT_ENCODING, { "X-IBM-Max-Items": maxLength.toString() }]);
});

it("should pass start option in URL search params if provided", async () => {
const response = await List.allMembers(dummySession, dsname, { start: "MEMBER1" });
await List.allMembers(dummySession, dsname, { start: "MEMBER1" });

expect(expectStringSpy).toHaveBeenCalledTimes(1);
expect(expectStringSpy).toHaveBeenCalledWith(dummySession, endpoint.concat("?start=MEMBER1"),
Expand Down

0 comments on commit e2d8735

Please sign in to comment.