fix: resolve all TypeScript errors in web app
This commit is contained in:
@@ -90,7 +90,7 @@ describe("GanttChart", () => {
|
||||
|
||||
render(<GanttChart tasks={tasks} />);
|
||||
|
||||
const taskRow = screen.getAllByText("Completed Task")[0].closest("[role='row']");
|
||||
const taskRow = screen.getAllByText("Completed Task")[0]!.closest("[role='row']");
|
||||
expect(taskRow?.className).toMatch(/Completed/i);
|
||||
});
|
||||
|
||||
@@ -105,7 +105,7 @@ describe("GanttChart", () => {
|
||||
|
||||
render(<GanttChart tasks={tasks} />);
|
||||
|
||||
const taskRow = screen.getAllByText("Active Task")[0].closest("[role='row']");
|
||||
const taskRow = screen.getAllByText("Active Task")[0]!.closest("[role='row']");
|
||||
expect(taskRow?.className).toMatch(/InProgress/i);
|
||||
});
|
||||
});
|
||||
@@ -219,8 +219,8 @@ describe("GanttChart", () => {
|
||||
expect(bars).toHaveLength(2);
|
||||
|
||||
// Second bar should be wider (more days)
|
||||
const bar1Width = bars[0].style.width;
|
||||
const bar2Width = bars[1].style.width;
|
||||
const bar1Width = bars[0]!.style.width;
|
||||
const bar2Width = bars[1]!.style.width;
|
||||
|
||||
// Basic check that widths are set (exact values depend on implementation)
|
||||
expect(bar1Width).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user