mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Refactor TickLabels.test.js
to TypeScript (#59956)
This commit is contained in:
parent
1f871d1dff
commit
3dc74bd74b
@ -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();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user