@@ -130,38 +130,15 @@ https://${'very-'.repeat(80)}-long-url.org/
130130 } )
131131
132132 t . test ( 'Co-author lines' , ( tt ) => {
133- const sha = 'f1496de5a7d5474e39eafaafe6f79befe5883a5b'
134- const author = {
135- name : 'Jacob Smith' ,
136- email : '3012099+JakobJingleheimer@users.noreply.github.com' ,
137- date : '2025-12-22T09:40:42Z'
138- }
139-
140133 const v = new Validator ( )
141- const overlongMessage = `fixup!: apply case-insensitive suggestion
142- Co-authored-by: Michaël Zasso <37011812+targos@users.noreply.github.com>`
143- const bad = new Commit ( {
144- sha,
145- author,
146- message : overlongMessage
147- } , v )
148-
149- bad . report = ( opts ) => {
150- tt . pass ( 'called report' )
151- tt . equal ( opts . id , 'line-length' , 'id' )
152- tt . equal ( opts . string , overlongMessage . split ( '\n' ) [ 1 ] , 'string' )
153- tt . equal ( opts . level , 'fail' , 'level' )
154- }
155-
156- Rule . validate ( bad , {
157- options : {
158- length : 72
159- }
160- } )
161134
162135 const good = new Commit ( {
163- sha,
164- author,
136+ sha : 'f1496de5a7d5474e39eafaafe6f79befe5883a5b' ,
137+ author : {
138+ name : 'Jacob Smith' ,
139+ email : '3012099+JakobJingleheimer@users.noreply.github.com' ,
140+ date : '2025-12-22T09:40:42Z'
141+ } ,
165142 message : [
166143 'fixup!: apply case-insensitive suggestion' ,
167144 'Co-authored-by: Michaël Zasso <37011812+targos@users.noreply.github.com>'
0 commit comments