Skip to content

Commit 9a1b22f

Browse files
Sebas VallejoSebas Vallejo
authored andcommitted
Fix tests after Culqi integration
1 parent ea9ae07 commit 9a1b22f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/routes/product/product.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ describe("Product Component", () => {
5151
expect(titleElement).toHaveTextContent("Awesome Product");
5252
});
5353

54-
it("should render product price with dollar sign", () => {
54+
it("should render product price with correct currency", () => {
5555
// Step 1: Setup - Create test props
5656
const props = createTestProps({ price: 150.99 });
5757
// Step 2: Mock - Component mocks already set up above
5858
// Step 3: Call - Render component
5959
render(<Product {...props} />);
6060
// Step 4: Verify - Check price is rendered correctly
61-
expect(screen.queryByText("$150.99")).toBeInTheDocument();
61+
expect(screen.queryByText("S/150.99")).toBeInTheDocument();
6262
});
6363

6464
it("should render product description", () => {

src/routes/signup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export async function action({ request }: Route.ActionArgs) {
9494

9595
export async function loader({ request }: Route.LoaderArgs) {
9696
await redirectIfAuthenticated(request);
97-
return null;
97+
return undefined;
9898
}
9999

100100
export default function Signup({ actionData }: Route.ComponentProps) {

0 commit comments

Comments
 (0)