Skip to content

Commit ed84074

Browse files
authored
unittest: 添加之前遗漏的kook_card_data.json (#5703)
1 parent bbf6123 commit ed84074

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

tests/test_kook/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!data
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"type": "card",
3+
"theme": "info",
4+
"size": "lg",
5+
"modules": [
6+
{
7+
"text": {
8+
"content": "test1",
9+
"type": "plain-text",
10+
"emoji": true
11+
},
12+
"type": "header"
13+
},
14+
{
15+
"text": {
16+
"content": "test2",
17+
"type": "kmarkdown"
18+
},
19+
"type": "section",
20+
"mode": "left"
21+
},
22+
{
23+
"type": "divider"
24+
},
25+
{
26+
"text": {
27+
"fields": [
28+
{
29+
"content": "test3",
30+
"type": "kmarkdown"
31+
},
32+
{
33+
"content": "**test4**",
34+
"type": "kmarkdown"
35+
}
36+
],
37+
"type": "paragraph",
38+
"cols": 2
39+
},
40+
"type": "section",
41+
"mode": "left"
42+
},
43+
{
44+
"elements": [
45+
{
46+
"src": "https://img.kookapp.cn/attachments/2023-01/05/63b645851ff19.svg",
47+
"type": "image",
48+
"alt": "",
49+
"size": "lg",
50+
"circle": false
51+
}
52+
],
53+
"type": "image-group"
54+
},
55+
{
56+
"src": "https://img.kookapp.cn/attachments/2023-01/05/63b645851ff19.svg",
57+
"title": "test5",
58+
"type": "file"
59+
},
60+
{
61+
"endTime": 1772343427360,
62+
"type": "countdown",
63+
"startTime": 1772343378259,
64+
"mode": "second"
65+
},
66+
{
67+
"elements": [
68+
{
69+
"text": "点我测试回调",
70+
"type": "button",
71+
"theme": "primary",
72+
"value": "btn_clicked",
73+
"click": "return-val"
74+
},
75+
{
76+
"text": "访问官网",
77+
"type": "button",
78+
"theme": "danger",
79+
"value": "https://www.kookapp.cn",
80+
"click": "link"
81+
}
82+
],
83+
"type": "action-group"
84+
},
85+
{
86+
"elements": [
87+
{
88+
"content": "test6",
89+
"type": "plain-text",
90+
"emoji": true
91+
}
92+
],
93+
"type": "context"
94+
},
95+
{
96+
"code": "test7",
97+
"type": "invite"
98+
}
99+
]
100+
}

0 commit comments

Comments
 (0)