Skip to content

Commit 49661ae

Browse files
committed
refactor: fixing test
1 parent 1e6ec1f commit 49661ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ describe('Timeline Card List component', () => {
160160
// Only one card element should be visible. Other two should be gropued and hidden
161161
expect(spectator.queryAll('.card').length).toEqual(1);
162162
expect(spectator.query('.time')).toExist();
163-
expect(spectator.query('.button')).toBe(spectator.query('.with-margin'));
163+
expect(spectator.query('.button')).toHaveClass('button with-margin');
164164

165165
spectator.setHostInput({
166166
showTime: false
167167
});
168168

169169
expect(spectator.query('.time')).not.toExist();
170-
expect(spectator.query('.button')).toBe(spectator.query('.with-margin'));
170+
expect(spectator.query('.button')).toHaveClass('button with-margin');
171171
});
172172
});

0 commit comments

Comments
 (0)