From f95cb380c6b571ee4eabb7986b87562da6e9b3ce Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 12 Jun 2023 17:23:40 +0100 Subject: [PATCH] Update import to match new database folder --- src/commands/timeout.ts | 2 +- tests/commands/timeout.test.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/timeout.ts b/src/commands/timeout.ts index 659e7d3..65e3ba0 100644 --- a/src/commands/timeout.ts +++ b/src/commands/timeout.ts @@ -1,7 +1,7 @@ import { CacheType, CommandInteraction, EmbedBuilder, GuildMember, PermissionsBitField, SlashCommandBuilder, TextChannel } from "discord.js"; import { AuditType } from "../constants/AuditType"; import EmbedColours from "../constants/EmbedColours"; -import Audit from "../entity/Audit"; +import Audit from "../database/entities/Audit"; import SettingsHelper from "../helpers/SettingsHelper"; import TimeLengthInput from "../helpers/TimeLengthInput"; import { Command } from "../type/command"; diff --git a/tests/commands/timeout.test.ts b/tests/commands/timeout.test.ts index f203dd6..c64ceb5 100644 --- a/tests/commands/timeout.test.ts +++ b/tests/commands/timeout.test.ts @@ -2,7 +2,7 @@ import { APIEmbed, CacheType, CommandInteraction, CommandInteractionOption, DMCh import { mock } from "jest-mock-extended"; import Timeout from "../../src/commands/timeout"; import SettingsHelper from "../../src/helpers/SettingsHelper"; -import Audit from "../../src/entity/Audit"; +import Audit from "../../src/database/entities/Audit"; import EmbedColours from "../../src/constants/EmbedColours"; import { DeepPartial, EntityTarget } from "typeorm"; import BaseEntity from "../../src/contracts/BaseEntity"; @@ -468,9 +468,9 @@ describe('execute', () => { } } as unknown as CommandInteraction; - + await command.execute(interaction); - + expect(timeoutFunc).toBeCalledWith(1000 * 60 * 1, ""); expect(savedAudit?.Reason).toBe("*none*"); @@ -551,9 +551,9 @@ describe('execute', () => { } } as unknown as CommandInteraction; - + await command.execute(interaction); - + expect(timeoutFunc).toBeCalled(); expect(sentEmbeds.length).toBe(0); expect(logChannelSendFunc).not.toBeCalled(); @@ -625,9 +625,9 @@ describe('execute', () => { } } as unknown as CommandInteraction; - + await command.execute(interaction); - + expect(timeoutFunc).toBeCalled(); expect(sentEmbeds.length).toBeGreaterThan(0); });