mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
Fix relatwed to issue number #54 - % in text
This commit is contained in:
@@ -9,7 +9,7 @@ describe('when parsing an info graph it',function() {
|
||||
parseError = function(err, hash) {
|
||||
console.log('Syntax error:' + err);
|
||||
};
|
||||
ex.yy.parseError = parseError;
|
||||
//ex.yy.parseError = parseError;
|
||||
});
|
||||
|
||||
it('should handle an info definition', function () {
|
||||
@@ -22,4 +22,15 @@ describe('when parsing an info graph it',function() {
|
||||
|
||||
ex.parse(str);
|
||||
});
|
||||
|
||||
it('should handle an showMessage statement definition', function () {
|
||||
var str = 'info\nshowInfo';
|
||||
|
||||
try{
|
||||
ex.parse(str);
|
||||
}
|
||||
catch(err){
|
||||
console.log('Caught'+err.message);
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user