From 18117af0672e6c974070f9a15a05023434096f31 Mon Sep 17 00:00:00 2001 From: Frank Schmitt Date: Sat, 18 Nov 2017 16:18:24 +0100 Subject: [PATCH 1/2] Fixed grammar in Gantt spec --- src/diagrams/gantt/gantt.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/diagrams/gantt/gantt.spec.js b/src/diagrams/gantt/gantt.spec.js index 4795cb8f0..0073cbbf8 100644 --- a/src/diagrams/gantt/gantt.spec.js +++ b/src/diagrams/gantt/gantt.spec.js @@ -7,22 +7,22 @@ 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 dateFormat 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 () { + 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 an section definition', function () { + it('should handle a section definition', function () { const str = 'gantt\ndateFormat yyyy-mm-dd\ntitle Adding gantt diagram functionality to mermaid' parser.parse(str) From 48ef5d74e89e14164df5eed4de802e92038a068a Mon Sep 17 00:00:00 2001 From: Frank Schmitt Date: Sat, 18 Nov 2017 16:22:49 +0100 Subject: [PATCH 2/2] Several small fixes in the Gantt spec - removed duplicate test for date spec - fixed title of title spec - added section to section spec --- src/diagrams/gantt/gantt.spec.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/diagrams/gantt/gantt.spec.js b/src/diagrams/gantt/gantt.spec.js index 0073cbbf8..a170be6e1 100644 --- a/src/diagrams/gantt/gantt.spec.js +++ b/src/diagrams/gantt/gantt.spec.js @@ -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) })