Removed unnecessary configs and extra code

This commit is contained in:
Nikolay Rozhkov 2023-06-25 21:56:14 +03:00
parent c5b89d127d
commit a38733346f
3 changed files with 1 additions and 5 deletions

View File

@ -10,6 +10,5 @@ describe('Sankey Diagram', () => {
`,
{}
);
cy.get('svg');
});
});

View File

@ -95,9 +95,6 @@
theme: 'default',
logLevel: 3,
securityLevel: 'loose',
flowchart: { curve: 'basis' },
gantt: { axisFormat: '%m/%d/%Y' },
sequence: { actorMargin: 50 },
sankey: {
title: 'Hey, this is Sankey-Beta',
width: 1200,

View File

@ -3,7 +3,7 @@ import type { DiagramDetector, ExternalDiagramDefinition } from '../../diagram-a
const id = 'sankey';
const detector: DiagramDetector = (txt) => {
return txt.match(/^\s*sankey-beta/) !== null;
return /^\s*sankey-beta/.test(txt);
};
const loader = async () => {