Files
nanocode/skills/hand-drawn-diagram/tests/fixtures/04_connections.json
T
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

29 lines
961 B
JSON

{
"name": "connections",
"description": "组件连接(Connection)测试",
"type": "create_architecture",
"params": {
"title": "连接测试",
"components": [
{"name": "Frontend", "type": "frontend", "x": 100, "y": 100},
{"name": "Backend", "type": "backend", "x": 300, "y": 100},
{"name": "DB", "type": "database", "x": 500, "y": 100}
],
"connections": [
{"from": "Frontend", "to": "Backend", "style": "solid", "label": "API"},
{"from": "Backend", "to": "DB", "style": "dashed", "label": "SQL"}
],
"output": "__TMP__/04_connections.svg",
"format": "svg"
},
"assertions": [
{"check": "not_empty"},
{"check": "contains", "text": "Frontend"},
{"check": "contains", "text": "Backend"},
{"check": "contains", "text": "DB"},
{"check": "contains", "text": "API"},
{"check": "contains", "text": "SQL"},
{"check": "contains_tag", "tag": "<path", "min_count": 2}
]
}