mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-07 08:09:39 +02:00
@@ -7,23 +7,21 @@ describe('when parsing a gantt diagram it', function () {
|
|||||||
parser.yy = ganttDb
|
parser.yy = ganttDb
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should handle an dateFormat definition', function () {
|
it('should handle a dateFormat definition', function () {
|
||||||
const str = 'gantt\ndateFormat yyyy-mm-dd'
|
const str = 'gantt\ndateFormat yyyy-mm-dd'
|
||||||
|
|
||||||
parser.parse(str)
|
parser.parse(str)
|
||||||
})
|
})
|
||||||
it('should handle an dateFormat definition', function () {
|
it('should handle a title definition', function () {
|
||||||
const str = 'gantt\ndateFormat yyyy-mm-dd\ntitle Adding gantt diagram functionality to mermaid'
|
const str = 'gantt\ndateFormat yyyy-mm-dd\ntitle Adding gantt diagram functionality to mermaid'
|
||||||
|
|
||||||
parser.parse(str)
|
parser.parse(str)
|
||||||
})
|
})
|
||||||
it('should handle an dateFormat definition', function () {
|
it('should handle a section definition', function () {
|
||||||
const str = 'gantt\ndateFormat yyyy-mm-dd\ntitle Adding gantt diagram functionality to mermaid'
|
const str = 'gantt\n' +
|
||||||
|
'dateFormat yyyy-mm-dd\n' +
|
||||||
parser.parse(str)
|
'title Adding gantt diagram functionality to mermaid\n' +
|
||||||
})
|
'section Documentation'
|
||||||
it('should handle an section definition', function () {
|
|
||||||
const str = 'gantt\ndateFormat yyyy-mm-dd\ntitle Adding gantt diagram functionality to mermaid'
|
|
||||||
|
|
||||||
parser.parse(str)
|
parser.parse(str)
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user