mirror of
https://github.com/grafana/grafana.git
synced 2025-09-26 02:53:41 +08:00
Chore: Refactor TickLabels.test.js
to TypeScript (#59956)
This commit is contained in:
@ -22,7 +22,7 @@ describe('<TickLabels>', () => {
|
|||||||
duration: 5000,
|
duration: 5000,
|
||||||
};
|
};
|
||||||
|
|
||||||
let ticks;
|
let ticks: HTMLElement[];
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
render(<TickLabels {...defaultProps} />);
|
render(<TickLabels {...defaultProps} />);
|
||||||
@ -50,8 +50,4 @@ describe('<TickLabels>', () => {
|
|||||||
expect(tick).toHaveStyle(`left: ${pos};`);
|
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