Skip to content

Commit

Permalink
test: update test after adding status column to reporting table
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalcengio committed Jan 2, 2025
1 parent 155dcc8 commit 1b3eba7
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("operationColumns function", () => {
it("returns an array of column definitions", () => {
const columns: GridColDef[] = operationColumns();

assert(columns.length === 4, "Expected 4 columns");
assert(columns.length === 5, "Expected 5 columns");

assert(
columns[0].field === "bcghg_id",
Expand Down Expand Up @@ -51,14 +51,17 @@ describe("operationColumns function", () => {
);
assert(columns[2].width === 120, "Column 3 width should be 120");

assert(columns[3].field === "more", 'Column 4 field should be "action"');
assert(columns[3].field === "report_status", 'Column 4 field should be "report_tatus"');
assert(columns[3].width === 160, "Column 4 width should be 160");

assert(columns[4].field === "more", 'Column 5 field should be "action"');
assert(
columns[3].headerName === "More",
'Column 4 headerName should be "More"',
columns[4].headerName === "More",
'Column 5 headerName should be "More"',
);
assert(columns[3].sortable === false, "Column 4 sortable should be false");
assert(columns[3].width === 120, "Column 4 width should be 120");
assert(columns[3].flex === 1, "Column 4 flex should be 1");
assert(columns[4].sortable === false, "Column 4 sortable should be false");
assert(columns[4].width === 120, "Column 4 width should be 120");
assert(columns[4].flex === 1, "Column 4 flex should be 1");
});

it("has a 'start' button in the 'Actions' column when report_id is null", () => {
Expand Down

0 comments on commit 1b3eba7

Please sign in to comment.