Chore: Refactor TickLabels.test.js to TypeScript (#59956)

This commit is contained in:
Hamas Shafiq 2022-12-15 17:11:17 +00:00 committed by GitHub
parent 1f871d1dff
commit 3dc74bd74b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
});
});