Skip to content

Commit 52298a0

Browse files
committed
test: update v3 pseudo content expectations
1 parent bb127cf commit 52298a0

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

packages/weapp-tailwindcss/test/__snapshots__/gulp.test.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ exports[`gulp > common build > css 1`] = `
55
::after {
66
--tw-content: ''}
77
view,text,::after,::before {
8-
box-sizing: border-box;
9-
border-width: 0;
10-
border-style: solid;
11-
border-color: currentColor;
128
--tw-border-spacing-x: 0;
139
--tw-border-spacing-y: 0;
1410
--tw-translate-x: 0;
@@ -60,7 +56,11 @@ view,text,::after,::before {
6056
--tw-contain-layout: ;
6157
--tw-contain-paint: ;
6258
--tw-contain-style:
63-
}
59+
;
60+
box-sizing: border-box;
61+
border-width: 0;
62+
border-style: solid;
63+
border-color: currentColor}
6464
.m-_b20px_B {
6565
margin: 20px
6666
}

packages/weapp-tailwindcss/test/tailwindcss/v3-engine.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('tailwindcss v3 engine', () => {
111111
expect(result.css).toContain('.w-4')
112112
expect(result.css).toContain('--tw-translate-x')
113113
expect(result.css).toContain('--tw-content')
114-
expect(compactCss(result.css)).toContain('view,text,::after,::before{--tw-content:"";}')
114+
expect(compactCss(result.css)).toContain('::before,::after{--tw-content:"";}')
115115
expect(result.css).toContain('view,text,::before,::after')
116116
expect(result.css).toContain('box-sizing: border-box')
117117
expect(result.css).toContain('border-width: 0')
@@ -325,7 +325,9 @@ describe('tailwindcss v3 engine', () => {
325325
})
326326

327327
const css = compactCss(result.css)
328-
expect(css).toContain('view,text,::after,::before{--tw-content:"";box-sizing:border-box')
328+
expect(css).toContain('::before,::after{--tw-content:""}')
329+
expect(css).toContain('view,text,::after,::before{--tw-border-spacing-x:0')
330+
expect(css).toContain('box-sizing:border-box')
329331
expect(css).toContain('border-width:0')
330332
expect(css).toContain('border-style:solid')
331333
expect(css).toContain('border-color:currentColor')

0 commit comments

Comments
 (0)