Fix types

This commit is contained in:
Sidharth Vinod
2023-02-21 23:24:11 +05:30
parent 1ac219282b
commit eca4163363

View File

@@ -35,8 +35,11 @@ describe('diagram-orchestration', () => {
{ text: 'gitGraph', expected: 'gitGraph' },
{ text: 'stateDiagram', expected: 'state' },
{ text: 'stateDiagram-v2', expected: 'stateDiagram' },
])('should $text be detected as $expected', ({ text, expected }) => {
expect(detectType(text)).toBe(expected);
});
])(
'should $text be detected as $expected',
({ text, expected }: { text: string; expected: string }) => {
expect(detectType(text)).toBe(expected);
}
);
});
});