mirror of
https://github.com/grafana/grafana.git
synced 2026-08-13 06:34:55 -05:00
Chore: Refactor TickLabels.test.js to TypeScript (#59956)
This commit is contained in:
+1
-5
@@ -22,7 +22,7 @@ describe('<TickLabels>', () => {
|
||||
duration: 5000,
|
||||
};
|
||||
|
||||
let ticks;
|
||||
let ticks: HTMLElement[];
|
||||
|
||||
beforeEach(() => {
|
||||
render(<TickLabels {...defaultProps} />);
|
||||
@@ -50,8 +50,4 @@ describe('<TickLabels>', () => {
|
||||
expect(tick).toHaveStyle(`left: ${pos};`);
|
||||
});
|
||||
});
|
||||
|
||||
it("doesn't explode if no trace is present", () => {
|
||||
expect(() => render(<TickLabels {...defaultProps} trace={null} />)).not.toThrow();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user