Skip to content

Commit e4cfb4b

Browse files
committed
refactor: updating tests
1 parent c9ae60f commit e4cfb4b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

projects/observability/src/shared/components/card-list/card-list.component.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,23 @@ describe('Card List component', () => {
6666
test('should apply grouped style class', () => {
6767
const data = [
6868
{
69-
name: 'first'
69+
name: 'first',
70+
grouped: true
7071
},
7172
{
72-
name: 'second'
73+
name: 'second',
74+
grouped: false
7375
},
7476
{
75-
name: 'third'
77+
name: 'third',
78+
grouped: false
7679
}
7780
];
7881

7982
spectator = createHost(
8083
`
8184
<ht-card-list [mode]="mode">
82-
<ht-card-container *ngFor="let cardData of this.data; first" showGroupedStyle="{{cardData === first ? true: false}}">
85+
<ht-card-container *ngFor="let cardData of this.data; first" showGroupedStyle="cardData.grouped">
8386
<div class="custom-card">
8487
<div class="title">{{cardData.name}}</div>
8588
</div>

0 commit comments

Comments
 (0)