@@ -185,8 +185,8 @@ describe('PackageSelector', () => {
185185 it ( 'respects max packages limit' , async ( ) => {
186186 const component = await mountSuspended ( PackageSelector , {
187187 props : {
188- modelValue : [ 'a' , 'b' , 'c' , 'd' ] ,
189- max : 4 ,
188+ modelValue : [ 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' ] ,
189+ max : 10 ,
190190 } ,
191191 } )
192192
@@ -200,19 +200,19 @@ describe('PackageSelector', () => {
200200 const component = await mountSuspended ( PackageSelector , {
201201 props : {
202202 modelValue : [ 'lodash' , 'underscore' ] ,
203- max : 4 ,
203+ max : 10 ,
204204 } ,
205205 } )
206206
207207 expect ( component . text ( ) ) . toContain ( '2' )
208- expect ( component . text ( ) ) . toContain ( '4 ' )
208+ expect ( component . text ( ) ) . toContain ( '10 ' )
209209 } )
210210
211211 it ( 'shows add hint when less than 2 packages' , async ( ) => {
212212 const component = await mountSuspended ( PackageSelector , {
213213 props : {
214214 modelValue : [ 'lodash' ] ,
215- max : 4 ,
215+ max : 10 ,
216216 } ,
217217 } )
218218
@@ -222,15 +222,15 @@ describe('PackageSelector', () => {
222222 } )
223223
224224 describe ( 'max prop' , ( ) => {
225- it ( 'defaults to 4 when not provided' , async ( ) => {
225+ it ( 'defaults to 10 when not provided' , async ( ) => {
226226 const component = await mountSuspended ( PackageSelector , {
227227 props : {
228228 modelValue : [ ] ,
229229 } ,
230230 } )
231231
232- // Should show max of 4 in hint
233- expect ( component . text ( ) ) . toContain ( '4 ' )
232+ // Should show max of 10 in hint
233+ expect ( component . text ( ) ) . toContain ( '10 ' )
234234 } )
235235
236236 it ( 'uses provided max value' , async ( ) => {
0 commit comments