Skip to content

Commit

Permalink
fix: Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Feb 12, 2025
1 parent fe1e329 commit d72a5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/components/buttons/SendButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe("SendButton Component", () => {
expect(button).toHaveStyle(`backgroundColor: ${DefaultStyles.sendButtonDisabledStyle?.backgroundColor}`);

// Check cursor style when button is disabled
expect(button).toHaveStyle(`cursor: url(undefined), auto`);
expect(button).toHaveStyle(`cursor: url("undefined"), auto`);

// Simulate hover (should not change color when textArea is disabled)
fireEvent.mouseEnter(button);
Expand Down Expand Up @@ -172,7 +172,7 @@ describe("SendButton Component", () => {
expect(button).toHaveStyle(`backgroundColor: ${DefaultSettings.general?.primaryColor}`);

// Check cursor style when button is disabled
expect(button).toHaveStyle(`cursor: url(undefined), auto`);
expect(button).toHaveStyle(`cursor: url("undefined"), auto`);

// Simulate hover (should not change color when textArea is disabled)
fireEvent.mouseEnter(button);
Expand Down

0 comments on commit d72a5c5

Please sign in to comment.