feat(FN-3301): render commit body in expanded git views
Completes the commit body rendering in expanded git views within `GitManagerModal`, including updated component implementation and tests. The dashboard git routes and modal component now properly display full commit body content. Fusion-Task-Id: FN-3301
This commit is contained in:
@@ -387,6 +387,9 @@ describe("Git Management endpoints", () => {
|
||||
expect(res.body[0]).toHaveProperty("message");
|
||||
expect(res.body[0]).toHaveProperty("author");
|
||||
expect(res.body[0]).toHaveProperty("date");
|
||||
if ("body" in res.body[0] && res.body[0].body !== undefined) {
|
||||
expect(typeof res.body[0].body).toBe("string");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -550,6 +553,9 @@ describe("Git Management endpoints", () => {
|
||||
expect(commit).toHaveProperty("author");
|
||||
expect(commit).toHaveProperty("date");
|
||||
expect(commit).toHaveProperty("parents");
|
||||
if ("body" in commit && commit.body !== undefined) {
|
||||
expect(typeof commit.body).toBe("string");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -593,6 +599,9 @@ describe("Git Management endpoints", () => {
|
||||
expect(commit).toHaveProperty("author");
|
||||
expect(commit).toHaveProperty("date");
|
||||
expect(commit).toHaveProperty("parents");
|
||||
if ("body" in commit && commit.body !== undefined) {
|
||||
expect(typeof commit.body).toBe("string");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user