Skip to content

Commit 1d86d98

Browse files
committed
more test tweaks
1 parent c4093a5 commit 1d86d98

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

extensions/markdown-language-features/src/test/pasteUrl.test.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@ suite('createEditAddingLinksForUriList', () => {
181181
});
182182

183183
test('Smart should be disabled in math blocks', async () => {
184-
const katex = (<any>(await import('@vscode/markdown-it-katex')).default).default;
184+
185+
let katex: any = (await import('@vscode/markdown-it-katex')).default;
186+
if (typeof katex === 'object') {
187+
katex = katex.default;
188+
}
189+
185190
const engine = createNewMarkdownEngine();
186191
(await engine.getEngine(undefined)).use(katex);
187192
assert.strictEqual(

0 commit comments

Comments
 (0)