Skip to content

Commit 0b19ea3

Browse files
committed
amend tests so suite is array
1 parent 5456f83 commit 0b19ea3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/convert.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('createCTRFReport', () => {
8585
duration: 500,
8686
filePath: 'test1.js',
8787
line: 10,
88-
suite: 'TestSuite1',
88+
suite: ['TestSuite1'],
8989
}),
9090
expect.objectContaining({
9191
name: 'testFailed',
@@ -95,15 +95,15 @@ describe('createCTRFReport', () => {
9595
line: 15,
9696
message: 'Test failed',
9797
trace: 'Error: Test failed\n at testFailed (test1.js:15:5)',
98-
suite: 'TestSuite1',
98+
suite: ['TestSuite1'],
9999
}),
100100
expect.objectContaining({
101101
name: 'testSkipped',
102102
status: 'skipped',
103103
duration: 100,
104104
filePath: 'test2.js',
105105
line: 20,
106-
suite: 'TestSuite2',
106+
suite: ['TestSuite2'],
107107
}),
108108
]),
109109
},
@@ -207,7 +207,7 @@ describe('createCTRFReport', () => {
207207
line: undefined,
208208
message: undefined,
209209
trace: undefined,
210-
suite: 'TestSuite',
210+
suite: ['TestSuite'],
211211
}),
212212
])
213213
})
@@ -246,7 +246,7 @@ describe('createCTRFReport', () => {
246246
message: 'Cannot read property of undefined',
247247
trace:
248248
'TypeError: Cannot read property of undefined\n at testWithError (test.js:25:10)',
249-
suite: 'TestSuite',
249+
suite: ['TestSuite'],
250250
}),
251251
])
252252
})

0 commit comments

Comments
 (0)