@@ -43,7 +43,7 @@ describe('check-pr', () => {
4343
4444 describe ( 'validateTitle' , ( ) => {
4545 it ( 'should validate title with proper structure' , async ( ) => {
46- await validateTitle ( 'chore: test ' ) ;
46+ await validateTitle ( 'chore: Test ' ) ;
4747 expect ( setFailed ) . not . toHaveBeenCalled ( ) ;
4848 } ) ;
4949
@@ -68,6 +68,13 @@ describe('check-pr', () => {
6868 ) ;
6969 } ) ;
7070
71+ it ( 'should invalidate title not starting with uppercase' , async ( ) => {
72+ await validateTitle ( 'chore: test' ) ;
73+ expect ( setFailed ) . toHaveBeenCalledWith (
74+ 'PR title must start with an uppercase letter.'
75+ ) ;
76+ } ) ;
77+
7178 it ( 'should invalidate title with wrong commit type' , async ( ) => {
7279 await validateTitle ( 'featt: test' ) ;
7380 expect ( setFailed ) . toHaveBeenCalledWith (
@@ -152,6 +159,15 @@ describe('check-pr', () => {
152159 expect ( setFailed ) . not . toHaveBeenCalled ( ) ;
153160 } ) ;
154161
162+ it ( 'should validate with @sap-ai-sdk scope' , async ( ) => {
163+ const fileContents = [
164+ "'@sap-ai-sdk/core': major" ,
165+ '[Fixed Issue] Something is fixed.'
166+ ] ;
167+ validateChangesets ( 'chore!' , '' , true , fileContents ) ;
168+ expect ( setFailed ) . not . toHaveBeenCalled ( ) ;
169+ } ) ;
170+
155171 it ( 'should validate with markdown link annotation' , async ( ) => {
156172 const fileContents = [
157173 '"@sap-cloud-sdk/generator": major' ,
0 commit comments