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:
Frank Schmitt
2017-11-18 16:22:49 +01:00
parent 18117af067
commit 48ef5d74e8

View File

@@ -12,18 +12,16 @@ describe('when parsing a gantt diagram it', function () {
parser.parse(str)
})
it('should handle a dateFormat 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 () {
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 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)
})