feat(ai-character): 리소스 관리 기반 정비
This commit is contained in:
@@ -2,6 +2,7 @@ import { http, HttpResponse } from "msw";
|
||||
import { afterEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
import { login, logout } from "@/features/auth/api/auth-api";
|
||||
import { UNKNOWN_API_ERROR_MESSAGE } from "@/shared/api/api-error";
|
||||
import { createApiClient } from "@/shared/api/client";
|
||||
import { server } from "@/shared/test/server";
|
||||
|
||||
@@ -77,7 +78,7 @@ describe("auth API", () => {
|
||||
const request = login(client, { email: "admin@test.com", password: "password" });
|
||||
|
||||
// Then
|
||||
await expect(request).rejects.toThrow("API 응답 형식이 올바르지 않습니다.");
|
||||
await expect(request).rejects.toThrow(UNKNOWN_API_ERROR_MESSAGE);
|
||||
});
|
||||
|
||||
test("posts logout once with Bearer and no body", async () => {
|
||||
|
||||
Reference in New Issue
Block a user