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

Commit fb527f9

Browse files
committed
Fix testings
1 parent 813eee9 commit fb527f9

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

plugins/css_test.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { exists } from 'std/fs/exists.ts'
21
import { join } from 'std/path/mod.ts'
3-
import { assert, assertEquals } from 'std/testing/asserts.ts'
2+
import { assertEquals } from 'std/testing/asserts.ts'
43
import { Aleph } from '../server/aleph.ts'
5-
import { computeHash } from '../server/helper.ts'
64
import { ensureTextFile } from '../shared/fs.ts'
7-
import { isCSS, cssLoader } from './css.ts'
5+
import { cssLoader } from './css.ts'
86

97
Deno.test('plugin: css loader', async () => {
108
Deno.env.set('DENO_TESTING', 'true')
@@ -21,11 +19,6 @@ Deno.test('plugin: css loader', async () => {
2119
'export default {}',
2220
'applyCSS("/style/index.css", { css })',
2321
].join('\n'))
24-
assert(isCSS('/style/index.css'))
25-
assert(isCSS('/style/index.pcss'))
26-
assert(isCSS('/style/index.postcss'))
27-
assert(!isCSS('/style/index.less'))
28-
assert(!isCSS('/style/index.sass'))
2922
})
3023

3124
Deno.test('plugin: css loader for remote external', async () => {

0 commit comments

Comments
 (0)