Skip to content

Commit

Permalink
fix(segment): fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
smile1016 committed Apr 19, 2024
1 parent 12393b1 commit 2b91a42
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/segment/test/segment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,9 @@ describe('segment', () => {

segmentedDebugElement.componentInstance.newActiveIndex = 1;
fixture.detectChanges();

const options = segmentedDebugElement.componentInstance.options;

options.changes.next();

fixture.detectChanges();

const items = segmentedDebugElement.queryAll(By.directive(ThySegmentItem));
expect(items[1].nativeElement.classList.contains('active')).toBeTruthy();
}));
Expand Down

0 comments on commit 2b91a42

Please sign in to comment.