Skip to content

Commit 730c846

Browse files
committed
fix: tests
1 parent 11433a6 commit 730c846

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

projects/components/src/table/header/table-header-cell-renderer.component.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ describe('Table Header Cell Renderer', () => {
113113
}
114114
});
115115

116-
spectator.click('.options-button');
117-
expect(spectator.query('.sort-ascending', { root: true })).not.toExist();
118-
expect(spectator.query('.sort-descending', { root: true })).not.toExist();
116+
expect(spectator.query('.options-button', { root: true })).not.toExist();
119117
});
120118

121119
test('should create tooltip correctly', () => {

projects/components/src/table/header/table-header-cell-renderer.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ import { TableColumnConfigExtended } from '../table.service';
4343
<ng-container *ngTemplateOutlet="optionsButton"></ng-container>
4444
</ng-container>
4545
46+
<ng-template #htmlTooltip>
47+
<div [innerHTML]="this.columnConfig?.titleTooltip"></div>
48+
</ng-template>
49+
4650
<ng-template #optionsButton>
4751
<ht-popover class="options-button" [closeOnClick]="true">
4852
<ht-popover-trigger>
@@ -74,10 +78,6 @@ import { TableColumnConfigExtended } from '../table.service';
7478
</div>
7579
</ht-popover-content>
7680
</ht-popover>
77-
78-
<ng-template #htmlTooltip>
79-
<div [innerHTML]="this.columnConfig?.titleTooltip"></div>
80-
</ng-template>
8181
</ng-template>
8282
</div>
8383
`

0 commit comments

Comments
 (0)