Skip to content

Commit

Permalink
test: Adding the necessary test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sinoon committed Mar 3, 2022
1 parent 9bac0c0 commit f45b01a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/playground/css/__tests__/css.spec.ts
Expand Up @@ -364,3 +364,8 @@ test('minify css', async () => {
expect(cssFile).toMatch('rgba(')
expect(cssFile).not.toMatch('#ffff00b3')
})

test('import css in less', async () => {
expect(await getColor('.css-in-less')).toBe('yellow')
expect(await getColor('.css-in-less-2')).toBe('blue')
})
4 changes: 2 additions & 2 deletions packages/playground/css/index.html
Expand Up @@ -107,10 +107,10 @@ <h1>CSS</h1>
<p class="inlined">Inlined import - this should NOT be red.</p>

<div class="css-in-less">
test for import css in less with SFC, color will be yellow
test import css in less, this color will be yellow
</div>
<div class="css-in-less-2">
test for import less in less with SFC, color will be blue
test for import less in less, this color will be blue
</div>

<pre class="inlined-code"></pre>
Expand Down

0 comments on commit f45b01a

Please sign in to comment.