Skip to content

Commit 9ea58ed

Browse files
Copilotkobenguyent
andcommitted
Improve edge case handling for empty suite titles in cloned tests
Co-authored-by: kobenguyent <[email protected]>
1 parent 5d39d84 commit 9ea58ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mocha/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function deserializeTest(test) {
7979
if (test.steps) test.steps = test.steps.map(step => Object.assign(new Step(step.title), step))
8080

8181
// Restore the custom fullTitle function to maintain consistency with original test
82-
if (test.parent && test.parent.title) {
82+
if (test.parent) {
8383
test.fullTitle = () => `${test.parent.title}: ${test.title}`
8484
}
8585

0 commit comments

Comments
 (0)