diff --git a/tools/test-js-with-node b/tools/test-js-with-node index 28fcb5d6b9..ef41588df8 100755 --- a/tools/test-js-with-node +++ b/tools/test-js-with-node @@ -239,7 +239,7 @@ EXEMPT_FILES = make_set( "web/src/submessage.js", "web/src/subscriber_api.js", "web/src/timerender.ts", - "web/src/tippyjs.js", + "web/src/tippyjs.ts", "web/src/todo_widget.js", "web/src/topic_list.js", "web/src/topic_popover.js", diff --git a/web/src/tippyjs.js b/web/src/tippyjs.ts similarity index 89% rename from web/src/tippyjs.js rename to web/src/tippyjs.ts index f7e4c2cc83..50c4217099 100644 --- a/web/src/tippyjs.js +++ b/web/src/tippyjs.ts @@ -1,4 +1,5 @@ import $ from "jquery"; +import assert from "minimalistic-assert"; import tippy, {delegate} from "tippy.js"; import render_tooltip_templates from "../templates/tooltip_templates.hbs"; @@ -8,12 +9,16 @@ import {user_settings} from "./user_settings"; // For tooltips without data-tippy-content, we use the HTML content of // a