Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit f5753d0

Browse files
committed
test: fix css processor testing
1 parent 1074d0e commit f5753d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/css_test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Deno.test('css processor', async () => {
1010
assertEquals(code, 'import { applyCSS } from "https://deno.land/x/aleph/framework/core/style.ts"\napplyCSS("/test.css", "h1 { font-size: 18px; }")')
1111
})
1212

13-
Deno.test('css loader for inline style', async () => {
13+
Deno.test('css processor for inline style', async () => {
1414
const processor = new CSSProcessor()
1515
const { code } = await processor.transform(
1616
'#inline-style-{}',
@@ -19,7 +19,7 @@ Deno.test('css loader for inline style', async () => {
1919
assertEquals(code, 'h1 { font-size: 18px; }')
2020
})
2121

22-
Deno.test('css loader in production mode', async () => {
22+
Deno.test('css processor in production mode', async () => {
2323
const processor = new CSSProcessor()
2424
processor.config(true, [])
2525
const { code } = await processor.transform(
@@ -30,9 +30,9 @@ Deno.test('css loader in production mode', async () => {
3030
assertEquals(code, 'import { applyCSS } from "https://deno.land/x/aleph/framework/core/style.ts"\napplyCSS("/test.css", "h1{font-size:18px}")')
3131
})
3232

33-
Deno.test('css loader with postcss plugins', async () => {
33+
Deno.test('css processor with postcss plugins', async () => {
3434
const processor = new CSSProcessor()
35-
processor.config(true, ['postcss-nested'])
35+
processor.config(false, ['postcss-nested'])
3636
const { code } = await processor.transform(
3737
'/test.css',
3838
'.foo { .bar { font-size: 100%; } }'

0 commit comments

Comments
 (0)