Skip to content

Commit

Permalink
Stabilized x-ray breakdown test.
Browse files Browse the repository at this point in the history
  • Loading branch information
bre1470 committed Nov 4, 2024
1 parent 0778a50 commit 490542f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/XRay/Breakdown.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,18 @@ export async function breakdownLoad (
'Connector table should exist of expected columns.'
);

const now = new Date();
const then = new Date(2024, 8 /* September */, 1);
const rowCount = connector.table.getRowCount();
const shouldCount = (
384 + // January 2024
((now.getFullYear() - then.getFullYear()) * 12) +
now.getMonth()
);

Assert.ok(
rowCount >= 392 && rowCount <= 393,
Assert.strictEqual(
rowCount,
shouldCount,
'Connector table should have the expected amount of rows.'
);

Expand Down

0 comments on commit 490542f

Please sign in to comment.