Skip to content

Commit

Permalink
One more type to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
gmechali committed Dec 17, 2024
1 parent c314cf8 commit 549ff6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/chart/base.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ beforeEach(() => {
// JSDom does not define SVGTSpanElements, and use SVGElement instead. Defines
// a shim for getComputedTextLength where each character is 1 px wide.
(window.SVGElement as any).prototype.getComputedTextLength =
function (): number {
function () {
// Title elements don't contribute to width
if (this.tagName === "title") {
return 0;
Expand Down

0 comments on commit 549ff6f

Please sign in to comment.