mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
Show number of lines that can be expanded
This commit is contained in:
@@ -309,4 +309,20 @@ describe("diff expander", () => {
|
||||
it("should return correct hunk", () => {
|
||||
expect(diffExpander.getHunk(1).hunk).toBe(HUNK_1);
|
||||
});
|
||||
|
||||
it("should return max expand head range for first hunk", () => {
|
||||
expect(diffExpander.getHunk(0).maxExpandHeadRange).toBe(0);
|
||||
});
|
||||
|
||||
it("should return max expand head range for hunks in the middle", () => {
|
||||
expect(diffExpander.getHunk(1).maxExpandHeadRange).toBe(5);
|
||||
});
|
||||
|
||||
it("should return max expand bottom range for hunks in the middle", () => {
|
||||
expect(diffExpander.getHunk(1).maxExpandBottomRange).toBe(1);
|
||||
});
|
||||
|
||||
it("should return a really bix number for the expand bottom range of the last hunk", () => {
|
||||
expect(diffExpander.getHunk(3).maxExpandBottomRange).toBeGreaterThan(99999);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user