mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Fix for broken tests
This commit is contained in:
parent
fc9d22562b
commit
213309f5e2
@ -1,5 +1,8 @@
|
||||
import { detectType } from './detectType';
|
||||
import { getDiagram, registerDiagram } from './diagramAPI';
|
||||
import { addDiagrams } from './diagram-orchestration';
|
||||
|
||||
addDiagrams();
|
||||
|
||||
describe('DiagramAPI', () => {
|
||||
it('should return default diagrams', () => {
|
||||
|
@ -1,12 +1,8 @@
|
||||
// import sequence from './parser/sequenceDiagram';
|
||||
// import sequenceDb from './sequenceDb';
|
||||
import * as configApi from '../../config';
|
||||
// import renderer from './sequenceRenderer';
|
||||
import mermaidAPI from '../../mermaidAPI';
|
||||
// import '../../diagram-api/diagramAPI';
|
||||
import Diagram from '../../Diagram';
|
||||
|
||||
// console.log('sequenceDiagram', sequenceDb);
|
||||
import { addDiagrams } from '../../diagram-api/diagram-orchestration';
|
||||
addDiagrams();
|
||||
/**
|
||||
* @param conf
|
||||
* @param key
|
||||
|
@ -4,6 +4,9 @@ import flowDb from './diagrams/flowchart/flowDb';
|
||||
import flowParser from './diagrams/flowchart/parser/flow';
|
||||
import flowRenderer from './diagrams/flowchart/flowRenderer';
|
||||
import Diagram from './Diagram';
|
||||
import { addDiagrams } from './diagram-api/diagram-orchestration';
|
||||
|
||||
addDiagrams();
|
||||
|
||||
const spyOn = jest.spyOn;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user