mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-07 17:46:44 +02:00
🖋️ Add grammar for Radar chart
This commit is contained in:
19
packages/parser/tests/packet.test.ts
Normal file
19
packages/parser/tests/packet.test.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { Packet } from '../src/language/index.js';
|
||||
import { expectNoErrorsOrAlternatives, packetParse as parse } from './test-util.js';
|
||||
|
||||
describe('packet', () => {
|
||||
it.each([
|
||||
`packet-beta`,
|
||||
` packet-beta `,
|
||||
`\tpacket-beta\t`,
|
||||
`
|
||||
\tpacket-beta
|
||||
`,
|
||||
])('should handle regular packet', (context: string) => {
|
||||
const result = parse(context);
|
||||
expectNoErrorsOrAlternatives(result);
|
||||
expect(result.value.$type).toBe(Packet);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user