From 2ef6b53f5e7a553f141a7713830c3c62d20cea7f Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Mon, 26 Aug 2024 06:29:47 +0800 Subject: [PATCH] Update completions.spec.ts --- .../language-server/tests/completions.spec.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/language-server/tests/completions.spec.ts b/packages/language-server/tests/completions.spec.ts index f91d333377..b86517721e 100644 --- a/packages/language-server/tests/completions.spec.ts +++ b/packages/language-server/tests/completions.spec.ts @@ -33,6 +33,23 @@ describe('Completions', async () => { `); }); + it('#4670', async () => { + expect( + (await requestCompletionList('fixture.vue', 'vue', ``)).items.map(item => item.label).filter(label => label.includes('click')) + ).toMatchInlineSnapshot(` + [ + "onclick", + "ondblclick", + "v-on:auxclick", + "@auxclick", + "v-on:click", + "@click", + "v-on:dblclick", + "@dblclick", + ] + `); + }); + it('HTML tags and built-in components', async () => { expect( (await requestCompletionList('fixture.vue', 'vue', ``)).items.map(item => item.label)