Skip to content

Commit 489b836

Browse files
committed
Update test
1 parent 0cedbe2 commit 489b836

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

packages/tailwindcss/src/intellisense.test.ts

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,26 @@ test('Can produce CSS per candidate using `candidatesToCss`', () => {
118118
let design = loadDesignSystem()
119119
design.invalidCandidates = new Set(['bg-[#fff]'])
120120

121-
expect(design.candidatesToCss(['underline', 'i-dont-exist', 'bg-[#fff]', 'bg-[#000]']))
121+
expect(design.candidatesToCss(['underline', 'i-dont-exist', 'bg-[#fff]', 'bg-[#000]', 'text-xs']))
122122
.toMatchInlineSnapshot(`
123-
[
124-
".underline {
125-
text-decoration-line: underline;
126-
}
127-
",
128-
null,
129-
null,
130-
".bg-\\[\\#000\\] {
131-
background-color: #000;
132-
}
133-
",
134-
]
135-
`)
123+
[
124+
".underline {
125+
text-decoration-line: underline;
126+
}
127+
",
128+
null,
129+
null,
130+
".bg-\\[\\#000\\] {
131+
background-color: #000;
132+
}
133+
",
134+
".text-xs {
135+
font-size: var(--text-xs);
136+
line-height: var(--tw-leading, var(--text-xs--line-height));
137+
}
138+
",
139+
]
140+
`)
136141
})
137142

138143
test('Utilities do not show wrapping selector in intellisense', async () => {

0 commit comments

Comments
 (0)