File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,6 +102,20 @@ describe("collectPrQualityFailures", () => {
102102 assert . ok ( ! failures . some ( ( f ) => f . code === "wrong_ancestry" ) ) ;
103103 } ) ;
104104
105+ it ( "reports wrong_base and bad_description together for main + empty body" , ( ) => {
106+ const failures = collectPrQualityFailures ( {
107+ baseRef : "main" ,
108+ allowedBases : allowed ,
109+ body : "" ,
110+ behindMain : 0 ,
111+ behindBase : 0 ,
112+ authorPermission : "read" ,
113+ } ) ;
114+ assert . ok ( failures . some ( ( f ) => f . code === "wrong_base" ) ) ;
115+ assert . ok ( failures . some ( ( f ) => f . code === "bad_description" ) ) ;
116+ assert . ok ( ! failures . some ( ( f ) => f . code === "wrong_ancestry" ) ) ;
117+ } ) ;
118+
105119 it ( "reports wrong_ancestry for contributor on #644-shaped compare" , ( ) => {
106120 const failures = collectPrQualityFailures ( {
107121 baseRef : "dev" ,
You can’t perform that action at this time.
0 commit comments