mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 11:59:39 +02:00
Several small fixes in the Gantt spec
- removed duplicate test for date spec - fixed title of title spec - added section to section spec
This commit is contained in:
@@ -12,18 +12,16 @@ describe('when parsing a gantt diagram it', function () {
|
|||||||
|
|
||||||
parser.parse(str)
|
parser.parse(str)
|
||||||
})
|
})
|
||||||
it('should handle a dateFormat definition', function () {
|
it('should handle a title definition', function () {
|
||||||
const str = 'gantt\ndateFormat yyyy-mm-dd\ntitle Adding gantt diagram functionality to mermaid'
|
|
||||||
|
|
||||||
parser.parse(str)
|
|
||||||
})
|
|
||||||
it('should handle a dateFormat 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 a section 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' +
|
||||||
|
'title Adding gantt diagram functionality to mermaid\n' +
|
||||||
|
'section Documentation'
|
||||||
|
|
||||||
parser.parse(str)
|
parser.parse(str)
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user