Skip to content

Commit 11d2c3e

Browse files
committed
- update tests
1 parent bc02967 commit 11d2c3e

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

__tests__/table.test.ts

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ const NORMAL_TABLE = [
3939
]
4040
const FLAKY_TABLE = [
4141
[
42-
{
43-
'data': '',
44-
'header': true
45-
},
4642
{
4743
'data': 'Test',
4844
'header': true
@@ -73,10 +69,6 @@ describe('buildSummaryTables', () => {
7369
expect(table).toStrictEqual(NORMAL_TABLE)
7470
expect(detailTable).toStrictEqual([
7571
[
76-
{
77-
"data": "",
78-
"header": true
79-
},
8072
{
8173
"data": "Test",
8274
"header": true
@@ -87,17 +79,20 @@ describe('buildSummaryTables', () => {
8779
}
8880
],
8981
[
90-
"checkName",
82+
{
83+
"data": "checkName",
84+
"colspan": "2"
85+
}
86+
],
87+
[
9188
"ABC-0199: XMPP Ping/PingIntegrationTest.pingAsync (Normal)",
9289
"✅ pass"
9390
],
9491
[
95-
"checkName",
9692
"ABC-0199: XMPP Ping/PingIntegrationTest.pingServer (Normal)",
9793
"✅ pass"
9894
],
9995
[
100-
"checkName",
10196
"ABC-0045: Multi-User Chat/MultiUserIntegrationTest.mucRoleTestForReceivingModerator (Normal)",
10297
"✅ pass"
10398
]
@@ -123,10 +118,6 @@ describe('buildSummaryTables', () => {
123118
expect(table).toStrictEqual(NORMAL_TABLE)
124119
expect(detailTable).toStrictEqual([
125120
[
126-
{
127-
"data": "",
128-
"header": true
129-
},
130121
{
131122
"data": "Test",
132123
"header": true
@@ -137,27 +128,32 @@ describe('buildSummaryTables', () => {
137128
}
138129
],
139130
[
140-
"ABC-0199: XMPP Ping",
141-
"",
142-
""
131+
{
132+
"data": "checkName",
133+
"colspan": "2"
134+
}
135+
],
136+
[
137+
{
138+
"data": "ABC-0199: XMPP Ping",
139+
"colspan": "2"
140+
}
143141
],
144142
[
145-
"",
146143
"ABC-0199: XMPP Ping/PingIntegrationTest.pingAsync (Normal)",
147144
"✅ pass"
148145
],
149146
[
150-
"",
151147
"ABC-0199: XMPP Ping/PingIntegrationTest.pingServer (Normal)",
152148
"✅ pass"
153149
],
154150
[
155-
"ABC-0045: Multi-User Chat",
156-
"",
157-
""
151+
{
152+
"data": "ABC-0045: Multi-User Chat",
153+
"colspan": "2"
154+
}
158155
],
159156
[
160-
"",
161157
"ABC-0045: Multi-User Chat/MultiUserIntegrationTest.mucRoleTestForReceivingModerator (Normal)",
162158
"✅ pass"
163159
]

0 commit comments

Comments
 (0)