Skip to content

Commit 278a12e

Browse files
committed
Update completions.spec.ts
1 parent e601874 commit 278a12e

File tree

1 file changed

+130
-0
lines changed

1 file changed

+130
-0
lines changed

packages/language-server/tests/completions.spec.ts

+130
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,136 @@ describe('Completions', async () => {
2929
`);
3030
});
3131

32+
it('HTML tags and built-in components', async () => {
33+
expect(
34+
(await requestCompletionList('fixture.vue', 'vue', `<template><| /></template>`)).items.map(item => item.label)
35+
).toMatchInlineSnapshot(`
36+
[
37+
"!DOCTYPE",
38+
"html",
39+
"head",
40+
"title",
41+
"base",
42+
"link",
43+
"meta",
44+
"style",
45+
"body",
46+
"article",
47+
"section",
48+
"nav",
49+
"aside",
50+
"h1",
51+
"h2",
52+
"h3",
53+
"h4",
54+
"h5",
55+
"h6",
56+
"header",
57+
"footer",
58+
"address",
59+
"p",
60+
"hr",
61+
"pre",
62+
"blockquote",
63+
"ol",
64+
"ul",
65+
"li",
66+
"dl",
67+
"dt",
68+
"dd",
69+
"figure",
70+
"figcaption",
71+
"main",
72+
"div",
73+
"a",
74+
"em",
75+
"strong",
76+
"small",
77+
"s",
78+
"cite",
79+
"q",
80+
"dfn",
81+
"abbr",
82+
"ruby",
83+
"rb",
84+
"rt",
85+
"rp",
86+
"time",
87+
"code",
88+
"var",
89+
"samp",
90+
"kbd",
91+
"sub",
92+
"sup",
93+
"i",
94+
"b",
95+
"u",
96+
"mark",
97+
"bdi",
98+
"bdo",
99+
"span",
100+
"br",
101+
"wbr",
102+
"ins",
103+
"del",
104+
"picture",
105+
"img",
106+
"iframe",
107+
"embed",
108+
"object",
109+
"param",
110+
"video",
111+
"audio",
112+
"source",
113+
"track",
114+
"map",
115+
"area",
116+
"table",
117+
"caption",
118+
"colgroup",
119+
"col",
120+
"tbody",
121+
"thead",
122+
"tfoot",
123+
"tr",
124+
"td",
125+
"th",
126+
"form",
127+
"label",
128+
"input",
129+
"button",
130+
"select",
131+
"datalist",
132+
"optgroup",
133+
"option",
134+
"textarea",
135+
"output",
136+
"progress",
137+
"meter",
138+
"fieldset",
139+
"legend",
140+
"details",
141+
"summary",
142+
"dialog",
143+
"script",
144+
"noscript",
145+
"canvas",
146+
"data",
147+
"hgroup",
148+
"menu",
149+
"Transition",
150+
"TransitionGroup",
151+
"KeepAlive",
152+
"Teleport",
153+
"Suspense",
154+
"component",
155+
"slot",
156+
"template",
157+
"fixture",
158+
]
159+
`);
160+
});
161+
32162
it('Directives', async () => {
33163
await requestCompletionItem('fixture.vue', 'vue', `<template><div v-ht|></div></template>`, 'v-html');
34164
await requestCompletionItem('fixture.vue', 'vue', `<template><div v-cl|></div></template>`, 'v-cloak');

0 commit comments

Comments
 (0)