Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Dec 12, 2024
1 parent ad0872d commit 1cdc178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/language-server/test/plugins/html/HTMLPlugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -69,6 +72,7 @@ describe('HTML Plugin', () => {

assert.deepStrictEqual(onClick, <CompletionItem>{
label: 'on:click',
sortText: isSvelte5Plus ? 'zon:click' : undefined,
kind: CompletionItemKind.Value,
documentation: {
kind: 'markdown',
Expand Down

0 comments on commit 1cdc178

Please sign in to comment.