@@ -21,7 +21,7 @@ const THEME_CONFIG = {
21
21
}
22
22
23
23
expect . extend ( {
24
- toMatchCss : ( receivedCss , expectedCss ) => {
24
+ toMatchCss : ( receivedCss : string , expectedCss : string ) => {
25
25
let strip = ( str : string ) => str . replace ( / [ ; \s ] / g, '' )
26
26
27
27
if ( strip ( receivedCss ) === strip ( expectedCss ) ) {
@@ -48,7 +48,7 @@ expect.extend({
48
48
49
49
describe ( 'Plugin' , ( ) => {
50
50
it ( 'generates utility classes with a default root size' , async ( ) => {
51
- return postcss (
51
+ return await postcss (
52
52
tailwindcss ( {
53
53
theme : {
54
54
...THEME_CONFIG ,
@@ -69,8 +69,6 @@ describe('Plugin', () => {
69
69
from : undefined ,
70
70
} )
71
71
. then ( ( result ) => {
72
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
73
- // @ts -ignore
74
72
expect ( result . css ) . toMatchCss ( `
75
73
.font-sans.text-sm.leading-sm.capsize::before,
76
74
.font-sans .text-sm.leading-sm.capsize::before,
@@ -156,7 +154,7 @@ describe('Plugin', () => {
156
154
} )
157
155
158
156
it ( 'generates utility classes with a custom root size' , async ( ) => {
159
- return postcss (
157
+ return await postcss (
160
158
tailwindcss ( {
161
159
theme : {
162
160
...THEME_CONFIG ,
@@ -177,8 +175,6 @@ describe('Plugin', () => {
177
175
from : undefined ,
178
176
} )
179
177
. then ( ( result ) => {
180
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
181
- // @ts -ignore
182
178
expect ( result . css ) . toMatchCss ( `
183
179
.font-sans.text-sm.leading-sm.capsize::before,
184
180
.font-sans .text-sm.leading-sm.capsize::before,
@@ -264,7 +260,7 @@ describe('Plugin', () => {
264
260
} )
265
261
266
262
it ( 'works with unitless or percentage line-height values' , async ( ) => {
267
- return postcss (
263
+ return await postcss (
268
264
tailwindcss ( {
269
265
theme : {
270
266
...THEME_CONFIG ,
@@ -284,8 +280,6 @@ describe('Plugin', () => {
284
280
from : undefined ,
285
281
} )
286
282
. then ( ( result ) => {
287
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
288
- // @ts -ignore
289
283
expect ( result . css ) . toMatchCss ( `
290
284
.font-sans.text-sm.leading-sm.capsize::before,
291
285
.font-sans .text-sm.leading-sm.capsize::before,
0 commit comments