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

View File

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