mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
test(ganttDb): update inclusive end date tests
This commit is contained in:
@@ -25,6 +25,7 @@ describe('when using the ganttDb', function () {
|
|||||||
${'getAxisFormat'} | ${''}
|
${'getAxisFormat'} | ${''}
|
||||||
${'getExcludes'} | ${[]}
|
${'getExcludes'} | ${[]}
|
||||||
${'getSections'} | ${[]}
|
${'getSections'} | ${[]}
|
||||||
|
${'endDatesAreInclusive'} | ${false}
|
||||||
`('should clear $fn', ({ fn, expected }) => {
|
`('should clear $fn', ({ fn, expected }) => {
|
||||||
expect(ganttDb[ fn ]()).toEqual(expected)
|
expect(ganttDb[ fn ]()).toEqual(expected)
|
||||||
})
|
})
|
||||||
@@ -151,7 +152,8 @@ describe('when using the ganttDb', function () {
|
|||||||
|
|
||||||
describe('when setting inclusive end dates', function () {
|
describe('when setting inclusive end dates', function () {
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
ganttDb.setDateFormat('YYYY-MM-DD', true)
|
ganttDb.setDateFormat('YYYY-MM-DD')
|
||||||
|
ganttDb.enableInclusiveEndDates()
|
||||||
ganttDb.addTask('test1', 'id1,2019-02-01,1d')
|
ganttDb.addTask('test1', 'id1,2019-02-01,1d')
|
||||||
ganttDb.addTask('test2', 'id2,2019-02-01,2019-02-03')
|
ganttDb.addTask('test2', 'id2,2019-02-01,2019-02-03')
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user