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'
22
33test ( '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
1415test ( '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
You can’t perform that action at this time.
0 commit comments