fix: unit test for button and input-field component

This commit is contained in:
Hafid Nur
2025-04-05 06:21:56 +07:00
parent 745a2d2873
commit 2746af0b3f
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -24,9 +24,9 @@ describe('Test Button Component', () => {
const button = screen.getByText('Delete');
expect(button).toHaveClass('bg-danger-500');
expect(button).toHaveClass('hover:bg-danger-600');
expect(button).toHaveClass('text-white');
expect(button).toHaveClass('bg-danger-100');
expect(button).toHaveClass('hover:bg-danger-200');
expect(button).toHaveClass('text-danger-500');
});
it("disables the button when 'disabled' prop is set", async () => {