diff --git a/packages/language-server/test/plugins/html/HTMLPlugin.test.ts b/packages/language-server/test/plugins/html/HTMLPlugin.test.ts index 7cf0bfa44..b70eecd92 100644 --- a/packages/language-server/test/plugins/html/HTMLPlugin.test.ts +++ b/packages/language-server/test/plugins/html/HTMLPlugin.test.ts @@ -13,6 +13,9 @@ import { import { HTMLPlugin } from '../../../src/plugins'; import { DocumentManager, Document } from '../../../src/lib/documents'; import { LSConfigManager } from '../../../src/ls-config'; +import { VERSION } from 'svelte/compiler'; + +const isSvelte5Plus = Number(VERSION.split('.')[0]) >= 5; describe('HTML Plugin', () => { function setup(content: string) { @@ -69,6 +72,7 @@ describe('HTML Plugin', () => { assert.deepStrictEqual(onClick, { label: 'on:click', + sortText: isSvelte5Plus ? 'zon:click' : undefined, kind: CompletionItemKind.Value, documentation: { kind: 'markdown',