Fix for broken tests

This commit is contained in:
Knut Sveidqvist 2022-09-12 07:41:56 +02:00
parent fc9d22562b
commit 213309f5e2
4 changed files with 8 additions and 14 deletions

View File

@ -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', () => {

View File

@ -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

View File

@ -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;

View File

@ -1,8 +0,0 @@
/**
*
*/
function apa() {
// comment's
const a = 1;
return 'apa' + a;
}