@@ -10,7 +10,7 @@ import type postcss from "postcss";
10
10
import autoprefixer from "autoprefixer" ;
11
11
import tailwindcss from "tailwindcss" ;
12
12
13
- import { build } from "./test-utils.ts" ;
13
+ import { build , readTextFile } from "./test-utils.ts" ;
14
14
15
15
describe ( "css" , ( ) => {
16
16
describe ( "basic" , ( ) => {
@@ -33,7 +33,7 @@ describe("css", () => {
33
33
) ;
34
34
assertEquals (
35
35
result . outputFiles [ 0 ] . text ,
36
- await Deno . readTextFile ( outFilePath ) ,
36
+ await readTextFile ( outFilePath ) ,
37
37
) ;
38
38
assertEquals ( result . outputFiles . length , 1 ) ;
39
39
} ) ;
@@ -60,7 +60,7 @@ describe("css", () => {
60
60
) ;
61
61
assertEquals (
62
62
result . outputFiles [ 0 ] . text ,
63
- await Deno . readTextFile ( outFilePath ) ,
63
+ await readTextFile ( outFilePath ) ,
64
64
) ;
65
65
assertEquals ( result . outputFiles . length , 1 ) ;
66
66
} ) ;
@@ -87,7 +87,7 @@ describe("css", () => {
87
87
) ;
88
88
assertEquals (
89
89
result . outputFiles [ 0 ] . text ,
90
- await Deno . readTextFile ( outFilePath ) ,
90
+ await readTextFile ( outFilePath ) ,
91
91
) ;
92
92
assertEquals ( result . outputFiles . length , 1 ) ;
93
93
} ) ;
@@ -115,7 +115,7 @@ describe("modules", () => {
115
115
) ;
116
116
assertEquals (
117
117
result . outputFiles [ 0 ] . text ,
118
- await Deno . readTextFile ( outFilePath ) ,
118
+ await readTextFile ( outFilePath ) ,
119
119
) ;
120
120
assertEquals ( result . outputFiles . length , 1 ) ;
121
121
} ) ;
@@ -138,12 +138,12 @@ describe("modules", () => {
138
138
) ;
139
139
assertEquals (
140
140
result . outputFiles [ 0 ] . text ,
141
- await Deno . readTextFile ( outFilePath ) ,
141
+ await readTextFile ( outFilePath ) ,
142
142
) ;
143
143
assertEquals ( result . outputFiles . length , 1 ) ;
144
144
await assertSnapshot (
145
145
t ,
146
- await Deno . readTextFile ( path . resolve ( rootDir , "./main.module.css.json" ) ) ,
146
+ await readTextFile ( path . resolve ( rootDir , "./main.module.css.json" ) ) ,
147
147
) ;
148
148
} ) ;
149
149
@@ -165,12 +165,12 @@ describe("modules", () => {
165
165
) ;
166
166
assertEquals (
167
167
result . outputFiles [ 0 ] . text ,
168
- await Deno . readTextFile ( outFilePath ) ,
168
+ await readTextFile ( outFilePath ) ,
169
169
) ;
170
170
assertEquals ( result . outputFiles . length , 1 ) ;
171
171
await assertSnapshot (
172
172
t ,
173
- await Deno . readTextFile ( path . resolve ( rootDir , "./main.module.css.json" ) ) ,
173
+ await readTextFile ( path . resolve ( rootDir , "./main.module.css.json" ) ) ,
174
174
) ;
175
175
} ) ;
176
176
@@ -192,12 +192,12 @@ describe("modules", () => {
192
192
) ;
193
193
assertEquals (
194
194
result . outputFiles [ 0 ] . text ,
195
- await Deno . readTextFile ( outFilePath ) ,
195
+ await readTextFile ( outFilePath ) ,
196
196
) ;
197
197
assertEquals ( result . outputFiles . length , 1 ) ;
198
198
await assertSnapshot (
199
199
t ,
200
- await Deno . readTextFile ( path . resolve ( rootDir , "./main.css.json" ) ) ,
200
+ await readTextFile ( path . resolve ( rootDir , "./main.css.json" ) ) ,
201
201
) ;
202
202
} ) ;
203
203
@@ -219,7 +219,7 @@ describe("modules", () => {
219
219
) ;
220
220
assertEquals (
221
221
result . outputFiles [ 0 ] . text ,
222
- await Deno . readTextFile ( outFilePath ) ,
222
+ await readTextFile ( outFilePath ) ,
223
223
) ;
224
224
assertEquals ( result . outputFiles . length , 1 ) ;
225
225
} ) ;
@@ -244,12 +244,12 @@ describe("modules", () => {
244
244
) ;
245
245
assertEquals (
246
246
result . outputFiles [ 0 ] . text ,
247
- await Deno . readTextFile ( outFilePath ) ,
247
+ await readTextFile ( outFilePath ) ,
248
248
) ;
249
249
assertEquals ( result . outputFiles . length , 1 ) ;
250
250
await assertSnapshot (
251
251
t ,
252
- await Deno . readTextFile (
252
+ await readTextFile (
253
253
path . resolve ( rootDir , "./custom.module.css.json" ) ,
254
254
) ,
255
255
) ;
@@ -277,12 +277,12 @@ describe("modules", () => {
277
277
) ;
278
278
assertEquals (
279
279
result . outputFiles [ 0 ] . text ,
280
- await Deno . readTextFile ( outFilePath ) ,
280
+ await readTextFile ( outFilePath ) ,
281
281
) ;
282
282
assertEquals ( result . outputFiles . length , 1 ) ;
283
283
await assertSnapshot (
284
284
t ,
285
- await Deno . readTextFile ( path . resolve ( rootDir , "./main.module.css.json" ) ) ,
285
+ await readTextFile ( path . resolve ( rootDir , "./main.module.css.json" ) ) ,
286
286
) ;
287
287
} ) ;
288
288
} ) ;
@@ -315,7 +315,7 @@ describe("plugins", () => {
315
315
) ;
316
316
assertEquals (
317
317
result . outputFiles [ 0 ] . text ,
318
- await Deno . readTextFile ( outFilePath ) ,
318
+ await readTextFile ( outFilePath ) ,
319
319
) ;
320
320
assertEquals ( result . outputFiles . length , 1 ) ;
321
321
} ) ;
@@ -348,7 +348,7 @@ describe("plugins", () => {
348
348
) ;
349
349
assertEquals (
350
350
result . outputFiles [ 0 ] . text ,
351
- await Deno . readTextFile ( outFilePath ) ,
351
+ await readTextFile ( outFilePath ) ,
352
352
) ;
353
353
assertEquals ( result . outputFiles . length , 1 ) ;
354
354
} ) ;
0 commit comments