Skip to content

Commit e845a2c

Browse files
test: fix tests
1 parent 0c06de8 commit e845a2c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

projects/components/src/multi-select/multi-select.component.test.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ describe('Multi Select Component', () => {
8080
expectObservable(spectator.component.triggerValues$).toBe('x', {
8181
x: {
8282
label: selectionOptions[1].label,
83-
selectedItemsCount: 1 // Selected element is 1 as set in hostProps
83+
overflowItemsCount: 0,
84+
overflowLabel: undefined
8485
}
8586
});
8687
});
@@ -116,7 +117,8 @@ describe('Multi Select Component', () => {
116117
expectObservable(spectator.component.triggerValues$).toBe('x', {
117118
x: {
118119
label: selectionOptions[1].label,
119-
selectedItemsCount: 2
120+
overflowItemsCount: 1,
121+
overflowLabel: 'third'
120122
}
121123
});
122124
});
@@ -159,7 +161,8 @@ describe('Multi Select Component', () => {
159161
expectObservable(spectator.component.triggerValues$).toBe('x', {
160162
x: {
161163
label: 'second',
162-
selectedItemsCount: 2
164+
overflowItemsCount: 1,
165+
overflowLabel: 'third'
163166
}
164167
});
165168
});
@@ -232,7 +235,8 @@ describe('Multi Select Component', () => {
232235
expectObservable(spectator.component.triggerValues$).toBe('x', {
233236
x: {
234237
label: 'second',
235-
selectedItemsCount: 2
238+
overflowItemsCount: 1,
239+
overflowLabel: 'third'
236240
}
237241
});
238242
});
@@ -368,7 +372,7 @@ describe('Multi Select Component', () => {
368372
expectObservable(spectator.component.triggerValues$).toBe('(x|)', {
369373
x: {
370374
label: 'Placeholder',
371-
selectedItemsCount: 0
375+
overflowItemsCount: 0
372376
}
373377
});
374378
});
@@ -398,7 +402,7 @@ describe('Multi Select Component', () => {
398402
expectObservable(spectator.component.triggerValues$).toBe('x', {
399403
x: {
400404
label: selectionOptions[1].label,
401-
selectedItemsCount: 1
405+
overflowItemsCount: 0
402406
}
403407
});
404408
});

0 commit comments

Comments
 (0)