mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-18 21:57:20 +02:00
fix: count native resets and test deferred public downloads
This commit is contained in:
1 parent
37d10eed20
commit
66b71583d4
3 files changed
+15
-2
No files matched your search
@@ -95,7 +95,11 @@ describe("GitHub App protocol boundaries", () => {
|
||||
const GitHubStream = require("../src/core/source/GitHubStream").default;
|
||||
const source = Object.create(GitHubStream.prototype);
|
||||
source.data = { organization: "other", repoName: "public", commit: "abc" };
|
||||
await source.downloadWithFallback(handle, "blob", "README.md");
|
||||
const content = await source.downloadWithFallback(handle, "blob", "README.md");
|
||||
expect(captured).to.equal(undefined);
|
||||
let body = "";
|
||||
for await (const chunk of content) body += chunk;
|
||||
expect(body).to.equal("file");
|
||||
expect(captured.url).to.include("other/public");
|
||||
expect(captured.url).to.include("README.md");
|
||||
expect(captured.options.headers.authorization).to.equal(undefined);
|
||||
|
||||
Reference in new issue
Block a user