File tree Expand file tree Collapse file tree 6 files changed +17
-17
lines changed Expand file tree Collapse file tree 6 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1
1
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" ;
5
5
6
6
describe ( "Test discordEphemeralResponse function" , ( ) => {
7
7
it ( "should return a JSONResponse" , ( ) => {
Original file line number Diff line number Diff line change 1
1
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" ;
5
5
6
6
describe ( "Test discordResponse function" , ( ) => {
7
7
it ( "should return a JSONResponse" , ( ) => {
Original file line number Diff line number Diff line change 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" ;
3
3
4
4
describe ( "Test getCommandName function" , ( ) => {
5
5
it ( "Returns hello command name in lower case" , ( ) => {
Original file line number Diff line number Diff line change 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" ;
4
4
5
5
describe ( "getMembersInServer" , ( ) => {
6
6
const mockEnv = {
Original file line number Diff line number Diff line change 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" ;
4
4
import {
5
5
dummyAddRoleBody ,
6
6
dummyCreateBody ,
7
7
guildEnv ,
8
- } from "../fixtures/fixture" ;
8
+ } from "../../ fixtures/fixture" ;
9
9
10
10
describe ( "createGuildRole" , ( ) => {
11
11
test ( "should return INTERNAL_SERVER_ERROR when response is not ok" , async ( ) => {
Original file line number Diff line number Diff line change 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" ;
3
3
4
4
describe ( "Test LowerCaseMessageCommand function" , ( ) => {
5
5
it ( "Should return the `HELLO` message in lower case" , ( ) => {
You can’t perform that action at this time.
0 commit comments