File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ import { convertToSass } from '../src/twcss-to-sass'
2
2
3
3
test ( 'convert to sass' , ( ) => {
4
4
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 */
7
8
.class-div-1 {
8
9
@apply w-72 h-40 bg-green-400 transform transition-all;
9
10
}`
@@ -13,8 +14,9 @@ test('convert to sass', () => {
13
14
14
15
test ( 'convert to sass with inline css' , ( ) => {
15
16
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 */
18
20
.class-div-1 {
19
21
@apply w-72 h-40 bg-green-400 transform transition-all;
20
22
border: 1px solid white;
@@ -34,8 +36,9 @@ test('convert to sass with comments', () => {
34
36
...
35
37
</div>
36
38
</div>
37
- <!-- Container End-->` ,
38
- sassOutput = `/* Container Start, Container Any -> 1 */
39
+ <!-- Container End-->`
40
+
41
+ const sassOutput = `/* Container Start, Container Any -> 1 */
39
42
.class-div-1 {
40
43
@apply bg-white;
41
44
You can’t perform that action at this time.
0 commit comments