diff --git a/test/ImageController/ImageController.test.ts b/test/ImageController/ImageController.test.ts index 6971d94..0b4e99a 100644 --- a/test/ImageController/ImageController.test.ts +++ b/test/ImageController/ImageController.test.ts @@ -1,11 +1,6 @@ -import { afterEach, describe, expect, it, mock, jest } from "bun:test"; -import Image from "src/types/Image"; -import ImageService from "src/services/ImageService"; -import GelbooruApiResponse from "src/types/GelbooruServiceResponse"; -import { BotApiResponse } from "src/types/BotApiResponse"; -import fs from "node:fs"; -import ImageController from "src/controllers/ImageController"; +import { afterEach, describe, expect, it, mock } from "bun:test"; import app from "src/app"; +import ImageService from "src/services/ImageService"; import request from "supertest"; const imageServiceOriginal = ImageService; diff --git a/test/ImageService/ImageService.test.ts b/test/ImageService/ImageService.test.ts index 865816a..d13f7aa 100644 --- a/test/ImageService/ImageService.test.ts +++ b/test/ImageService/ImageService.test.ts @@ -1,11 +1,10 @@ -import { afterEach, describe, expect, it, mock, spyOn } from "bun:test"; -import Image from "src/types/Image"; -import ImageService from "src/services/ImageService"; -import GelbooruApiResponse from "src/types/GelbooruServiceResponse"; -import { BotApiResponse } from "src/types/BotApiResponse"; -import GelbooruApiService from "src/services/GelbooruApiService"; +import { afterEach, describe, expect, it, mock } from "bun:test"; import BotApiService from "src/services/BotApiService"; -import fs from "node:fs"; +import GelbooruApiService from "src/services/GelbooruApiService"; +import ImageService from "src/services/ImageService"; +import { BotApiResponse } from "src/types/BotApiResponse"; +import GelbooruApiResponse from "src/types/GelbooruServiceResponse"; +import Image from "src/types/Image"; const imageServiceOriginal = ImageService; const gelbooruApiServiceOriginal = GelbooruApiService;