From 33c3ed75327eafc6631617ee5335e97727da29e6 Mon Sep 17 00:00:00 2001 From: bidof Date: Thu, 29 Feb 2024 14:09:55 +0100 Subject: [PATCH] arreglar los test unitarios --- webapp/src/components/AddUser.js | 2 +- webapp/src/components/Login.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/AddUser.js b/webapp/src/components/AddUser.js index 65f77ba..486507b 100644 --- a/webapp/src/components/AddUser.js +++ b/webapp/src/components/AddUser.js @@ -3,7 +3,7 @@ import React, { useState } from 'react'; import axios from 'axios'; import { Container, Typography, TextField, Button, Snackbar } from '@mui/material'; -const apiEndpoint = process.env.API_URI || 'http://error no se cargo bien la apiURI de docker'; +const apiEndpoint = process.env.API_URI || 'http://localhost:8000'; const AddUser = () => { const [username, setUsername] = useState(''); diff --git a/webapp/src/components/Login.js b/webapp/src/components/Login.js index 8783111..68b111b 100644 --- a/webapp/src/components/Login.js +++ b/webapp/src/components/Login.js @@ -11,7 +11,7 @@ const Login = () => { const [createdAt, setCreatedAt] = useState(''); const [openSnackbar, setOpenSnackbar] = useState(false); - const apiEndpoint = process.env.API_URI ||'http://Error no se cargo bien la apiURI de docker'; + const apiEndpoint = process.env.API_URI ||'http://localhost:8000'; const loginUser = async () => { try {