File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Common/CategoriesSelector Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
exports[`CategoriesSelector > should render with an active category 1`] = `
2
- "<ul class=\\"mb-4 flex space-x-2 border-green-400 border-b-4 text-gray-800 dark:border-green-600 dark:text-gray-200\\"><li class=\\"flex cursor-pointer items-center rounded-t-md px-2 py-1 transition duration-200 hover:bg-green-400 hover:text-white dark:hover:bg-green-600 dark:hover:text-white bg-green-400 text-white dark:bg-green-600\\" data-test-current-category=\\"true\\" aria-current=\\"true\\" ><a href=\\"/article/slug1\\">category1</a></li><li class=\\"flex cursor-pointer items-center rounded-t-md px-2 py-1 transition duration-200 hover:bg-green-400 hover:text-white dark:hover:bg-green-600 dark:hover:text-white\\" data-test-current-category=\\"false\\" aria-current =\\"false\\"><a href=\\"/article/slug2\\">category2</a></li></ul>"
2
+ "<ul class=\\"mb-4 flex space-x-2 border-green-400 border-b-4 text-gray-800 dark:border-green-600 dark:text-gray-200\\"><li aria-current=\\"true\\" class=\\"flex cursor-pointer items-center rounded-t-md px-2 py-1 transition duration-200 hover:bg-green-400 hover:text-white dark:hover:bg-green-600 dark:hover:text-white bg-green-400 text-white dark:bg-green-600\\" data-test-current-category=\\"true\\"><a href=\\"/article/slug1\\">category1</a></li><li aria-current=\\"false\\" class=\\"flex cursor-pointer items-center rounded-t-md px-2 py-1 transition duration-200 hover:bg-green-400 hover:text-white dark:hover:bg-green-600 dark:hover:text-white\\" data-test-current-category=\\"false\\"><a href=\\"/article/slug2\\">category2</a></li></ul>"
3
3
`;
4
4
5
5
exports[`CategoriesSelector > should render with no active category 1`] = `
6
- "<ul class=\\"mb-4 flex space-x-2 border-green-400 border-b-4 text-gray-800 dark:border-green-600 dark:text-gray-200\\"><li class=\\"flex cursor-pointer items-center rounded-t-md px-2 py-1 transition duration-200 hover:bg-green-400 hover:text-white dark:hover:bg-green-600 dark:hover:text-white bg-green-400 text-white dark:bg-green-600\\" data-test-current-category=\\"false\\" aria-current=\\"false\\" ><a href=\\"/article/slug1\\">category1</a></li><li class=\\"flex cursor-pointer items-center rounded-t-md px-2 py-1 transition duration-200 hover:bg-green-400 hover:text-white dark:hover:bg-green-600 dark:hover:text-white\\" data-test-current-category=\\"false\\" aria-current =\\"false\\"><a href=\\"/article/slug2\\">category2</a></li></ul>"
6
+ "<ul class=\\"mb-4 flex space-x-2 border-green-400 border-b-4 text-gray-800 dark:border-green-600 dark:text-gray-200\\"><li aria-current=\\"false\\" class=\\"flex cursor-pointer items-center rounded-t-md px-2 py-1 transition duration-200 hover:bg-green-400 hover:text-white dark:hover:bg-green-600 dark:hover:text-white bg-green-400 text-white dark:bg-green-600\\" data-test-current-category=\\"false\\"><a href=\\"/article/slug1\\">category1</a></li><li aria-current=\\"false\\" class=\\"flex cursor-pointer items-center rounded-t-md px-2 py-1 transition duration-200 hover:bg-green-400 hover:text-white dark:hover:bg-green-600 dark:hover:text-white\\" data-test-current-category=\\"false\\"><a href=\\"/article/slug2\\">category2</a></li></ul>"
7
7
`;
Original file line number Diff line number Diff line change 1
1
exports[`ArticleCard > should render as a div by default 1`] = `
2
- "<div class=\\"max-w-96 rounded-md border-2 border-gray-600 bg-white p-4 dark:border-gray-800 dark:bg-gray-800 dark:text-white\\"><h2 class=\\"mb-2 font-bold text-2xl text-green-600 dark:text-green-400\\"><a href=\\"article/post/test-title\\" class=\\"text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300\\">Test Title</a></h2><p class=\\"mb-2 font-medium text-gray-700 dark:text-gray-300\\">Test Description</p><div class=\\"flex items-center justify-between gap-1.5 text-gray-500 dark:text-gray-400\\"><span class=\\"truncate font-medium text-gray-600 dark:text-gray-300\\">Author1, Author2</span><span class=\\"flex-shrink-0 font-thin text-gray-600 dark:text-gray-300\\">2025-07-01</span></div></div>"
2
+ "<div class=\\"max-w-96 rounded-md border-2 border-gray-600 bg-white p-4 dark:border-gray-800 dark:bg-gray-800 dark:text-white\\"><h2 class=\\"mb-2 font-bold text-2xl text-green-600 dark:text-green-400\\"><a class=\\"text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300\\" href=\\"article/post/test-title \\">Test Title</a></h2><p class=\\"mb-2 font-medium text-gray-700 dark:text-gray-300\\">Test Description</p><div class=\\"flex items-center justify-between gap-1.5 text-gray-500 dark:text-gray-400\\"><span class=\\"truncate font-medium text-gray-600 dark:text-gray-300\\">Author1, Author2</span><span class=\\"flex-shrink-0 font-thin text-gray-600 dark:text-gray-300\\">2025-07-01</span></div></div>"
3
3
`;
4
4
5
5
exports[`ArticleCard > should render as a li when specified 1`] = `
6
- "<li class=\\"max-w-96 rounded-md border-2 border-gray-600 bg-white p-4 dark:border-gray-800 dark:bg-gray-800 dark:text-white\\"><h2 class=\\"mb-2 font-bold text-2xl text-green-600 dark:text-green-400\\"><a href=\\"article/post/test-title\\" class=\\"text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300\\">Test Title</a></h2><p class=\\"mb-2 font-medium text-gray-700 dark:text-gray-300\\">Test Description</p><div class=\\"flex items-center justify-between gap-1.5 text-gray-500 dark:text-gray-400\\"><span class=\\"truncate font-medium text-gray-600 dark:text-gray-300\\">Author1, Author2</span><span class=\\"flex-shrink-0 font-thin text-gray-600 dark:text-gray-300\\">2025-07-01</span></div></li>"
6
+ "<li class=\\"max-w-96 rounded-md border-2 border-gray-600 bg-white p-4 dark:border-gray-800 dark:bg-gray-800 dark:text-white\\"><h2 class=\\"mb-2 font-bold text-2xl text-green-600 dark:text-green-400\\"><a class=\\"text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300\\" href=\\"article/post/test-title \\">Test Title</a></h2><p class=\\"mb-2 font-medium text-gray-700 dark:text-gray-300\\">Test Description</p><div class=\\"flex items-center justify-between gap-1.5 text-gray-500 dark:text-gray-400\\"><span class=\\"truncate font-medium text-gray-600 dark:text-gray-300\\">Author1, Author2</span><span class=\\"flex-shrink-0 font-thin text-gray-600 dark:text-gray-300\\">2025-07-01</span></div></li>"
7
7
`;
You can’t perform that action at this time.
0 commit comments