diff --git a/src/diagrams/gantt/gantt.spec.js b/src/diagrams/gantt/gantt.spec.js index 4795cb8f0..a170be6e1 100644 --- a/src/diagrams/gantt/gantt.spec.js +++ b/src/diagrams/gantt/gantt.spec.js @@ -7,23 +7,21 @@ describe('when parsing a gantt diagram it', function () { parser.yy = ganttDb }) - it('should handle an dateFormat definition', function () { + it('should handle a dateFormat definition', function () { const str = 'gantt\ndateFormat yyyy-mm-dd' 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' parser.parse(str) }) - it('should handle an dateFormat definition', function () { - const str = 'gantt\ndateFormat yyyy-mm-dd\ntitle Adding gantt diagram functionality to mermaid' - - parser.parse(str) - }) - it('should handle an section definition', function () { - const str = 'gantt\ndateFormat yyyy-mm-dd\ntitle Adding gantt diagram functionality to mermaid' + it('should handle a section definition', function () { + const str = 'gantt\n' + + 'dateFormat yyyy-mm-dd\n' + + 'title Adding gantt diagram functionality to mermaid\n' + + 'section Documentation' parser.parse(str) })