mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-15 10:14:21 +01:00
Fix of broken tests
This commit is contained in:
@@ -8,19 +8,6 @@ describe('when detecting chart type ',function() {
|
||||
|
||||
});
|
||||
|
||||
it('should handle a sequence defintion', function () {
|
||||
str = 'sequence TB\nbfs1:queue';
|
||||
|
||||
var type = utils.detectType(str);
|
||||
expect(type).toBe('sequence');
|
||||
});
|
||||
it('should handle a sequence defintion with leading spaces', function () {
|
||||
str = ' sequence TB\nbfs1:queue';
|
||||
|
||||
var type = utils.detectType(str);
|
||||
expect(type).toBe('sequence');
|
||||
});
|
||||
|
||||
it('should handle a graph defintion', function () {
|
||||
str = 'graph TB\nbfs1:queue';
|
||||
|
||||
@@ -40,12 +27,6 @@ describe('when detecting chart type ',function() {
|
||||
var type = utils.detectType(str);
|
||||
expect(type).toBe('graph');
|
||||
});
|
||||
it('should handle a sequence defintion with leading spaces and newline', function () {
|
||||
str = ' \n sequence TB\nbfs1:queue';
|
||||
|
||||
var type = utils.detectType(str);
|
||||
expect(type).toBe('sequence');
|
||||
});
|
||||
});
|
||||
|
||||
describe('when cloning CSS ',function() {
|
||||
|
||||
Reference in New Issue
Block a user