fix excluded dates ignored in YYYY-MM-DD HH:mm:ss date format

This commit is contained in:
darshanr0107
2025-07-09 20:02:18 +05:30
parent dda9c9b46e
commit 5f0c53c8a7
2 changed files with 22 additions and 12 deletions

View File

@@ -647,6 +647,20 @@ describe('Gantt diagram', () => {
);
});
it('should render a gantt diagram excluding a specific date in YYYY-MM-DD HH:mm:ss format', () => {
imgSnapshotTest(
`
gantt
dateFormat YYYY-MM-DD HH:mm:ss
excludes 2025-07-07
section Section
A task :a1, 2025-07-04 20:30:30, 2025-07-08 10:30:30
Another task:after a1, 20h
`,
{}
);
});
it("should render when there's a semicolon in the title", () => {
imgSnapshotTest(
`