mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-24 14:44:06 +01:00
Merge branch 'develop' into sidv/fixRunAsync
* develop: (23 commits) Fix test refactor(deps): replace `moment` with `dayjs` test(gantt): test daylight savings in ganttdb Update .lycheeignore chore: dagre-d3-es@7.0.9 chore: Add tsdoc for registerLazyLoadedDiagrams feat: Ensure proper detection for flowcharts fix: Class label not visible if class is already defined Update import fix TS errors fix TS errors feat: Match timeline section width to tasks chore: TimelineRenderer in TS Fix types fix: Detector order Lint Cleanup nodes.js docs: Update classdiagram docs classLabel tests Formatting ...
This commit is contained in:
@@ -3,6 +3,7 @@ import { getDiagram, registerDiagram } from './diagramAPI';
|
||||
import { addDiagrams } from './diagram-orchestration';
|
||||
import { DiagramDetector } from './types';
|
||||
import { getDiagramFromText } from '../Diagram';
|
||||
import { it, describe, expect, beforeAll } from 'vitest';
|
||||
|
||||
addDiagrams();
|
||||
beforeAll(async () => {
|
||||
@@ -25,7 +26,7 @@ describe('DiagramAPI', () => {
|
||||
'"Diagram loki not found."'
|
||||
);
|
||||
expect(() => detectType('loki diagram')).toThrowErrorMatchingInlineSnapshot(
|
||||
'"No diagram type detected for text: loki diagram"'
|
||||
'"No diagram type detected matching given configuration for text: loki diagram"'
|
||||
);
|
||||
const detector: DiagramDetector = (str: string) => {
|
||||
return str.match('loki') !== null;
|
||||
|
||||
Reference in New Issue
Block a user