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:
@@ -21,10 +21,11 @@ describe('when using the ganttDb', function () {
|
||||
fn | expected
|
||||
${'getTasks'} | ${[]}
|
||||
${'getTitle'} | ${''}
|
||||
${'getDateFormat'}| ${''}
|
||||
${'getAxisFormat'}| ${''}
|
||||
${'getDateFormat'} | ${''}
|
||||
${'getAxisFormat'} | ${''}
|
||||
${'getExcludes'} | ${[]}
|
||||
${'getSections'} | ${[]}
|
||||
${'endDatesAreInclusive'} | ${false}
|
||||
`('should clear $fn', ({ fn, expected }) => {
|
||||
expect(ganttDb[ fn ]()).toEqual(expected)
|
||||
})
|
||||
@@ -151,7 +152,8 @@ describe('when using the ganttDb', function () {
|
||||
|
||||
describe('when setting inclusive end dates', 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('test2', 'id2,2019-02-01,2019-02-03')
|
||||
})
|
||||
|
Reference in New Issue
Block a user