Skip to content

Commit 4a03980

Browse files
committed
test: ajustar testes do frontend às rotas atuais
Atualiza os testes de autenticação, jobs e keywords para utilizar rotas sem o prefixo /api. Também alinha os testes do formulário de cadastro ao fluxo atual, removendo a dependência do modo admin legado e validando o payload realmente enviado.
1 parent 81caf40 commit 4a03980

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

frontend/src/domains/auth/presentation/components/RegisterFormPanel.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import {
3-
getGithubAuthUrl,
4-
getGoogleAuthUrl,
5-
getLinkedinAuthUrl,
6-
register,
7-
} from "@/services/authService";
2+
83
import { Image } from "@unpic/react";
94
import { motion } from "framer-motion";
105
import { ArrowLeft, Eye, EyeOff } from "lucide-react";
116
import { FormEvent, useState } from "react";
127
import PhoneInput from "react-phone-number-input";
138
import "react-phone-number-input/style.css";
9+
import {
10+
getGithubAuthUrl,
11+
getGoogleAuthUrl,
12+
getLinkedinAuthUrl,
13+
register,
14+
} from "../../infrastructure/authApi";
1415

1516
const STATIC_STARS = Array.from({ length: 40 }).map((_, i) => {
1617
const random = (min: number, max: number) =>

0 commit comments

Comments
 (0)