File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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" , ( ) => {
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export async function action({ request }: Route.ActionArgs) {
9494
9595export async function loader ( { request } : Route . LoaderArgs ) {
9696 await redirectIfAuthenticated ( request ) ;
97- return null ;
97+ return undefined ;
9898}
9999
100100export default function Signup ( { actionData } : Route . ComponentProps ) {
You can’t perform that action at this time.
0 commit comments