Skip to content

Commit b684af1

Browse files
refactor folder structure (#63)
1 parent 90c0627 commit b684af1

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

tests/unit/discordEphemeralResponse.test.ts renamed to tests/unit/utils/discordEphemeralResponse.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { InteractionResponseType } from "discord-interactions";
2-
import { responseJson } from "../../src/typeDefinitions/default.types";
3-
import JSONResponse from "../../src/utils/JsonResponse";
4-
import { discordEphemeralResponse } from "../../src/utils/discordEphemeralResponse";
2+
import { responseJson } from "../../../src/typeDefinitions/default.types";
3+
import JSONResponse from "../../../src/utils/JsonResponse";
4+
import { discordEphemeralResponse } from "../../../src/utils/discordEphemeralResponse";
55

66
describe("Test discordEphemeralResponse function", () => {
77
it("should return a JSONResponse", () => {

tests/unit/discordResponse.test.ts renamed to tests/unit/utils/discordResponse.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { InteractionResponseType } from "discord-interactions";
2-
import { responseJson } from "../../src/typeDefinitions/default.types";
3-
import { discordTextResponse } from "../../src/utils/discordResponse";
4-
import JSONResponse from "../../src/utils/JsonResponse";
2+
import { responseJson } from "../../../src/typeDefinitions/default.types";
3+
import { discordTextResponse } from "../../../src/utils/discordResponse";
4+
import JSONResponse from "../../../src/utils/JsonResponse";
55

66
describe("Test discordResponse function", () => {
77
it("should return a JSONResponse", () => {

tests/unit/getCommandName.test.ts renamed to tests/unit/utils/getCommandName.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { HELLO, VERIFY } from "../../src/constants/commands";
2-
import { getCommandName } from "../../src/utils/getCommandName";
1+
import { HELLO, VERIFY } from "../../../src/constants/commands";
2+
import { getCommandName } from "../../../src/utils/getCommandName";
33

44
describe("Test getCommandName function", () => {
55
it("Returns hello command name in lower case", () => {

tests/unit/getMembersInServer.test.ts renamed to tests/unit/utils/getMembersInServer.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { DISCORD_BASE_URL } from "../../src/constants/urls";
2-
import JSONResponse from "../../src/utils/JsonResponse";
3-
import { getMembersInServer } from "../../src/utils/getMembersInServer";
1+
import { DISCORD_BASE_URL } from "../../../src/constants/urls";
2+
import JSONResponse from "../../../src/utils/JsonResponse";
3+
import { getMembersInServer } from "../../../src/utils/getMembersInServer";
44

55
describe("getMembersInServer", () => {
66
const mockEnv = {

tests/unit/guildRole.test.ts renamed to tests/unit/utils/guildRole.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import JSONResponse from "../../src/utils/JsonResponse";
2-
import * as response from "../../src/constants/responses";
3-
import { createGuildRole, addGroupRole } from "../../src/utils/guildRole";
1+
import JSONResponse from "../../../src/utils/JsonResponse";
2+
import * as response from "../../../src/constants/responses";
3+
import { createGuildRole, addGroupRole } from "../../../src/utils/guildRole";
44
import {
55
dummyAddRoleBody,
66
dummyCreateBody,
77
guildEnv,
8-
} from "../fixtures/fixture";
8+
} from "../../fixtures/fixture";
99

1010
describe("createGuildRole", () => {
1111
test("should return INTERNAL_SERVER_ERROR when response is not ok", async () => {

tests/unit/lowerCaseMessageCommands.test.ts renamed to tests/unit/utils/lowerCaseMessageCommands.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { lowerCaseMessageCommands } from "../../src/utils/lowerCaseMessageCommand";
2-
import { dummyHelloMessage, dummyVerifyMessage } from "../fixtures/fixture";
1+
import { lowerCaseMessageCommands } from "../../../src/utils/lowerCaseMessageCommand";
2+
import { dummyHelloMessage, dummyVerifyMessage } from "../../fixtures/fixture";
33

44
describe("Test LowerCaseMessageCommand function", () => {
55
it("Should return the `HELLO` message in lower case", () => {

0 commit comments

Comments
 (0)