feat(FN-5099): complete Step 4 — pass verification gates
Fusion-Task-Id: FN-5099 Fusion-Task-Lineage: 26353f25-da61-4b61-8fd2-69915a984cc4
This commit is contained in:
committed by
gsxdsm
parent
39fee83654
commit
d8a04ff5a7
@@ -66,7 +66,7 @@ describe("classifyForeignOnlyContamination", () => {
|
||||
expect(result.uniqueShas).toEqual([foreignSha]);
|
||||
});
|
||||
|
||||
it("returns foreign-only-already-upstream when foreign-attributed commits are on main", async () => {
|
||||
it("returns clean when foreign-attributed commits are already on main", async () => {
|
||||
const { repoDir, baseSha } = await setupRepo();
|
||||
const foreignSha = await makeCommit(repoDir, "foreign-b", "feat(FN-4002): foreign upstream", "FN-4002");
|
||||
await run("git checkout main", repoDir);
|
||||
@@ -81,10 +81,8 @@ describe("classifyForeignOnlyContamination", () => {
|
||||
mainRef: "main",
|
||||
});
|
||||
|
||||
expect(result.kind).toBe("foreign-only-already-upstream");
|
||||
expect(result.foreignCommitCount).toBe(1);
|
||||
expect(result.uniqueShas).toEqual([]);
|
||||
expect(result.alreadyUpstreamShas).toEqual([foreignSha]);
|
||||
expect(result.kind).toBe("clean");
|
||||
expect(result.foreignCommitCount).toBe(0);
|
||||
});
|
||||
|
||||
it("returns ambiguous when own and foreign commits are mixed", async () => {
|
||||
|
||||
Reference in New Issue
Block a user