Fixed the date ranges for the Reference options
This commit is contained in:
@@ -48,7 +48,7 @@ test("Redwood cascade is byte-identical to the characterized original", () => {
|
||||
test("fiscal module can run alone without DOM, browser APIs or network", () => {
|
||||
const factory = new vm.Script(`${read("src/features/opportunities/fiscal-periods.js")}\ncreateOpportunitiesFiscalPeriods;`).runInNewContext();
|
||||
assert.deepEqual(json(factory().getFiscalPeriodRange("Current Fiscal Year", new Date(2027, 0, 15))), {
|
||||
startCloseDate: "2026-06-01T00:00:00.000Z", endCloseDate: "2027-05-31T00:00:00.000Z"
|
||||
startCloseDate: "2026-06-01T00:00:00.000Z", endCloseDate: "2027-06-01T00:00:00.000Z"
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user