mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
fix: fixed failing test cases
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -7,16 +7,10 @@ import { setConfig } from '../../diagram-api/diagramAPI.js';
|
||||
import renderer from './sequenceRenderer.js';
|
||||
import type { MermaidConfig } from '../../config.type.js';
|
||||
|
||||
const db = new SequenceDB();
|
||||
parser.yy = {
|
||||
parseMessage: db.parseMessage.bind(db),
|
||||
matchAsActorOrParticipant: db.matchAsActorOrParticipant.bind(db),
|
||||
};
|
||||
|
||||
export const diagram: DiagramDefinition = {
|
||||
parser,
|
||||
get db() {
|
||||
return db;
|
||||
return new SequenceDB();
|
||||
},
|
||||
renderer,
|
||||
styles,
|
||||
|
Reference in New Issue
Block a user