@@ -85,33 +85,33 @@ describe('driver', () => {
85
85
eq ( labels [ 3 ] , 'l2' ) ;
86
86
} ) ;
87
87
88
- it ( 'should reject reminders with labels greater than 51 characters' , async ( t ) => {
88
+ it ( 'should reject reminders with labels greater than 50 characters' , async ( t ) => {
89
89
const repository = { owner : 'acuminous' , name : 'knuff-github-driver' } ;
90
90
const reminder = {
91
91
id : `test-${ crypto . randomBytes ( 10 ) . toString ( 'hex' ) } ` ,
92
92
title : t . name ,
93
93
body : 'the body' ,
94
- labels : [ '123456789 123456789 123456789 123456789 123456789 12 ' ] ,
94
+ labels : [ '123456789 123456789 123456789 123456789 123456789 1 ' ] ,
95
95
date : new Date ( '2024-12-25' ) ,
96
96
} ;
97
97
98
98
await rejects ( ( ) => driver . createReminder ( repository , reminder ) , ( error ) => {
99
- eq ( error . message , "Label '123456789 123456789 123456789 123456789 123456789 12 ' is longer than the GitHub max length of 51 characters" ) ;
99
+ eq ( error . message , "Label '123456789 123456789 123456789 123456789 123456789 1 ' is longer than the GitHub max length of 50 characters" ) ;
100
100
return true ;
101
101
} ) ;
102
102
} ) ;
103
103
104
104
it ( 'should reject reminders with an id greater than 46 characters' , async ( t ) => {
105
105
const repository = { owner : 'acuminous' , name : 'knuff-github-driver' } ;
106
106
const reminder = {
107
- id : '123456789 123456789 123456789 123456789 123456 ' ,
107
+ id : '123456789 123456789 123456789 123456789 12345 ' ,
108
108
title : t . name ,
109
109
body : 'the body' ,
110
110
date : new Date ( '2024-12-25' ) ,
111
111
} ;
112
112
113
113
await rejects ( ( ) => driver . createReminder ( repository , reminder ) , ( error ) => {
114
- eq ( error . message , "Label 'knuff:123456789 123456789 123456789 123456789 123456 ' is longer than the GitHub max length of 51 characters" ) ;
114
+ eq ( error . message , "Label 'knuff:123456789 123456789 123456789 123456789 12345 ' is longer than the GitHub max length of 50 characters" ) ;
115
115
return true ;
116
116
} ) ;
117
117
} ) ;
0 commit comments