diff --git a/src/client/components/Status.tsx b/src/client/components/Status.tsx
index 5c1991e..7d5026e 100644
--- a/src/client/components/Status.tsx
+++ b/src/client/components/Status.tsx
@@ -50,7 +50,7 @@ function Map({ entries }: { entries: Models.IEntry[] }) {
image1
image2
diff --git a/src/tests/login.test.ts b/src/tests/login.test.ts
index 4bb5699..e7a593e 100644
--- a/src/tests/login.test.ts
+++ b/src/tests/login.test.ts
@@ -25,7 +25,7 @@ describe('Login', () => {
try {
response = await axios({
method: "post",
- url: "/login/csrf",
+ url: "http://localhost:80/login/csrf",
headers: {
"content-type": "application/x-www-form-urlencoded",
"x-requested-with": "XMLHttpRequest"
@@ -34,6 +34,7 @@ describe('Login', () => {
serverStatus = response.status;
} catch (error) {
console.error(error);
+ throw Error("fail");
}
@@ -79,7 +80,8 @@ describe('Login', () => {
it('test invalid credentials to return error', async () => {
try {
- userDataWithToken.csrfToken = csrfToken
+ userDataWithToken.csrfToken = csrfToken;
+ console.log("csrfToken %o", userDataWithToken.csrfToken);
await axios.post('http://localhost:80/login', qs.stringify(userDataWithToken));
} catch (error) {
const axiosError = error as AxiosError;