Skip to content

Commit 0c1a25f

Browse files
test: use correct mock functions (#1507)
1 parent 1fba7c5 commit 0c1a25f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

projects/components/src/table/cells/data-renderers/relative-timestamp/relative-timestamp-table-cell-renderer.component.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
TooltipDirective
77
} from '@hypertrace/components';
88
import { createComponentFactory } from '@ngneat/spectator/jest';
9-
import { MockComponent, MockPipe } from 'ng-mocks';
9+
import { MockDirective, MockPipe } from 'ng-mocks';
1010
import { tableCellDataProvider } from '../../test/cell-providers';
1111
import {
1212
RelativeTimestampTableCellRendererComponent,
@@ -24,7 +24,7 @@ describe('relative timestamp table cell renderer component', () => {
2424
new TableCellNoOpParser(undefined!)
2525
)
2626
],
27-
declarations: [MockComponent(TooltipDirective), MockPipe(DisplayDatePipe)],
27+
declarations: [MockDirective(TooltipDirective), MockPipe(DisplayDatePipe)],
2828
shallow: true
2929
});
3030

projects/observability/src/shared/components/table/data-cell/exit-calls/exit-calls-table-cell-renderer.component.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
TooltipDirective
66
} from '@hypertrace/components';
77
import { createComponentFactory } from '@ngneat/spectator/jest';
8-
import { MockComponent } from 'ng-mocks';
8+
import { MockDirective } from 'ng-mocks';
99
import { ExitCallsTableCellRendererComponent } from './exit-calls-table-cell-renderer.component';
1010

1111
describe('Exit Calls table cell renderer component', () => {
@@ -19,7 +19,7 @@ describe('Exit Calls table cell renderer component', () => {
1919
new TableCellNoOpParser(undefined!)
2020
)
2121
],
22-
declarations: [MockComponent(TooltipDirective)],
22+
declarations: [MockDirective(TooltipDirective)],
2323
shallow: true
2424
});
2525

0 commit comments

Comments
 (0)