Skip to content

Commit 1286737

Browse files
test(server): a PR's repository wins over the checkout's for host media
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 4828519 commit 1286737

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/server/src/assets/AssetAccess.test.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,10 @@ describe("AssetAccess", () => {
15621562
// The upstream sent no type, so it comes from the file name the host gave the media.
15631563
expect(response.headers["content-type"]).toBe("image/png");
15641564
expect(response.headers["content-length"]).toBe("5");
1565+
1566+
// A pull request's own repository wins over the checkout it is shown in.
1567+
yield* sourceControlMediaResponse({ ...asset, repository: "enterprise/private" }, {});
1568+
expect(fetched.at(-1)?.repository).toBe("enterprise/private");
15651569
}).pipe(
15661570
Effect.provide(Layer.mergeAll(layerTest, layerDrivers, layerIdentities)),
15671571
Effect.scoped,

0 commit comments

Comments
 (0)