Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ describe("Use cli", () => {
},
);

// Pin this pack because these tests exercise authentication, not registry compatibility.
// Remove the pin once every supported CLI can download the latest tutorial pack.
describe("github authentication", () => {
itWithCodeQL()(
"should not use authentication if there are no credentials",
Expand All @@ -138,7 +140,7 @@ describe("Use cli", () => {
.spyOn(authentication, "getSession")
.mockResolvedValue(undefined);

await cli.packDownload(["codeql/tutorial"]);
await cli.packDownload(["codeql/tutorial@0.0.11"]);
expect(getSession).toHaveBeenCalledTimes(1);
expect(getSession).toHaveBeenCalledWith(
"github",
Expand All @@ -165,7 +167,7 @@ describe("Use cli", () => {
scopes: ["read:packages"],
});

await cli.packDownload(["codeql/tutorial"]);
await cli.packDownload(["codeql/tutorial@0.0.11"]);
expect(getSession).toHaveBeenCalledTimes(2);
expect(getSession).toHaveBeenCalledWith(
"github",
Expand Down