mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 11:44:07 +01: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);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -21,3 +21,6 @@ exports.getInfo = function(){
|
||||
return info;
|
||||
};
|
||||
|
||||
exports.parseError = function(err,hash){
|
||||
mermaid.parseError(err,hash);
|
||||
};
|
||||
Reference in New Issue
Block a user