Skip to content

Commit ab6dbf6

Browse files
committed
fix: formatting
1 parent 36d2871 commit ab6dbf6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/twcss-to-sass.test.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { convertToSass } from '../src/twcss-to-sass'
22

33
test('convert to sass', () => {
44
const htmlCotnent =
5-
'<div class="w-72 h-40 bg-green-400 transform transition-all">My Text 1</div>',
6-
sassOutput = `/* div -> 1 */
5+
'<div class="w-72 h-40 bg-green-400 transform transition-all">My Text 1</div>'
6+
7+
const sassOutput = `/* div -> 1 */
78
.class-div-1 {
89
@apply w-72 h-40 bg-green-400 transform transition-all;
910
}`
@@ -13,8 +14,9 @@ test('convert to sass', () => {
1314

1415
test('convert to sass with inline css', () => {
1516
const htmlCotnent =
16-
'<div class="w-72 h-40 bg-green-400 transform transition-all" style="border: 1px solid white; padding: 30px; font-weight: 50px;">My Text 1</div>',
17-
sassOutput = `/* div -> 1 */
17+
'<div class="w-72 h-40 bg-green-400 transform transition-all" style="border: 1px solid white; padding: 30px; font-weight: 50px;">My Text 1</div>'
18+
19+
const sassOutput = `/* div -> 1 */
1820
.class-div-1 {
1921
@apply w-72 h-40 bg-green-400 transform transition-all;
2022
border: 1px solid white;
@@ -34,8 +36,9 @@ test('convert to sass with comments', () => {
3436
...
3537
</div>
3638
</div>
37-
<!-- Container End-->`,
38-
sassOutput = `/* Container Start, Container Any -> 1 */
39+
<!-- Container End-->`
40+
41+
const sassOutput = `/* Container Start, Container Any -> 1 */
3942
.class-div-1 {
4043
@apply bg-white;
4144

0 commit comments

Comments
 (0)