Skip to content

Commit

Permalink
Several small fixes in the Gantt spec
Browse files Browse the repository at this point in the history
 - removed duplicate test for date spec
 - fixed title of title spec
 - added section to section spec
  • Loading branch information
frankschmitt committed Nov 18, 2017
1 parent 18117af commit 48ef5d7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/diagrams/gantt/gantt.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 48ef5d7

Please sign in to comment.