Skip to content

Commit d7751f5

Browse files
committed
refactor: renamed test file
1 parent 6a9dbee commit d7751f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/twmerge/Merge_test.go renamed to pkg/twmerge/create-tailwind-merge_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,12 +516,20 @@ func TestTailwindMerge(t *testing.T) {
516516
// in: "grow', [null, false, [['grow-[2]']]]",
517517
// out: "grow-[2]",
518518
// },
519+
// CUSTOM TESTS
520+
{
521+
// test case where there is modifier & maybePostfix which causes maybePostfix to be beyond size of baseClass
522+
in: "hover:bg-red-500/90",
523+
out: "hover:bg-red-500/90",
524+
},
519525
}
520526

521527
for _, tc := range tt {
522528
got := Merge(tc.in)
523529
if areStringsEqual(got, tc.out) == false {
524530
t.Errorf("twMerge failed -> | in: %v | %v != %v", tc.in, got, tc.out)
531+
} else {
532+
// t.Log("twMerge passed -> | in: ", tc.in, " | out: ", got, " | expected: ", tc.out)
525533
}
526534
}
527535
}

0 commit comments

Comments
 (0)