Skip to content

Commit ae88cc7

Browse files
committed
fix: update tests & fix typo
1 parent 4a18344 commit ae88cc7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/nuxt/components/compare/PackageSelector.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

@@ -229,8 +229,8 @@ describe('PackageSelector', () => {
229229
},
230230
})
231231

232-
// Should show max of 4 in hint
233-
expect(component.text()).toContain('1O')
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

Comments
 (0)