Pasado de paths de tsconfig a package.json por problemas que daba con yaml
18 lines
492 B
TypeScript
18 lines
492 B
TypeScript
import { test, describe } from "vitest"
|
|
import { JWTService } from "./JWT.service.js"
|
|
|
|
describe("Tokens Objenious", () => {
|
|
const jwtService = new JWTService()
|
|
|
|
test("Solicicitud normal de auth", async () => {
|
|
const token = await jwtService.getAccessToken()
|
|
console.log("acceso objenious", token)
|
|
}),
|
|
|
|
test("Solicicitud de refresh de auth", async () => {
|
|
const token = await jwtService.tryRefreshToken()
|
|
console.log("acceso refresh objenious", token)
|
|
})
|
|
})
|
|
|