mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-01 19:34:17 +01:00
test: Add test for timeout
This commit is contained in:
@@ -188,6 +188,20 @@ flowchart TB
|
|||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should handle timeouts gracefully', () => {
|
||||||
|
imgSnapshotTest(`---
|
||||||
|
config:
|
||||||
|
icons:
|
||||||
|
timeout: 1
|
||||||
|
packs:
|
||||||
|
logos: "@iconify-json/logos@1"
|
||||||
|
---
|
||||||
|
flowchart TB
|
||||||
|
A[Start] --> B@{ icon: 'logos:aws', label: 'Timeout' }
|
||||||
|
B --> C[End]
|
||||||
|
`);
|
||||||
|
});
|
||||||
|
|
||||||
it('should handle missing pack gracefully', () => {
|
it('should handle missing pack gracefully', () => {
|
||||||
imgSnapshotTest(`flowchart TB
|
imgSnapshotTest(`flowchart TB
|
||||||
A[Start] --> B@{ icon: 'missing:icon', label: 'Missing Pack Icon' }
|
A[Start] --> B@{ icon: 'missing:icon', label: 'Missing Pack Icon' }
|
||||||
|
|||||||
Reference in New Issue
Block a user