diff --git a/test/structures/Attachment.js b/test/structures/Attachment.js index bb585d74..0db03f94 100644 --- a/test/structures/Attachment.js +++ b/test/structures/Attachment.js @@ -1,5 +1,5 @@ import { expect } from "chai"; -import Attachment from "../../src/structures/Attachment.js"; +import { Attachment } from "../../src/structures.js"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; diff --git a/test/structures/AuditLog.js b/test/structures/AuditLog.js index 882360a1..bb15ff67 100644 --- a/test/structures/AuditLog.js +++ b/test/structures/AuditLog.js @@ -1,6 +1,6 @@ import { expect } from "chai"; -import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import AuditLog from "../../src/structures/AuditLog.js"; +import { TEST_CLIENTS, TEST_DATA } from "../../src/testData.js"; +import { AuditLog } from "../../src/structures.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; describe("AuditLog", function () { diff --git a/test/structures/ButtonClick.js b/test/structures/ButtonClick.js index 46e259c6..c9ba8cec 100644 --- a/test/structures/ButtonClick.js +++ b/test/structures/ButtonClick.js @@ -5,7 +5,7 @@ import { TEST_DATA, TEST_GUILDS, } from "../../src/testData.js"; -import ButtonClick from "../../src/structures/ButtonClick.js"; +import { ButtonClick } from "../../src/structures.js"; describe("ButtonClick", function () { context("check import", function () { diff --git a/test/structures/CategoryChannel.js b/test/structures/CategoryChannel.js index a4c2f9f3..0a0e0427 100644 --- a/test/structures/CategoryChannel.js +++ b/test/structures/CategoryChannel.js @@ -1,5 +1,5 @@ import { expect } from "chai"; -import CategoryChannel from "../../src/structures/CategoryChannel.js"; +import { CategoryChannel } from "../../src/structures.js"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; diff --git a/test/structures/Channel.js b/test/structures/Channel.js index 02b3c1c3..2db7ba1a 100644 --- a/test/structures/Channel.js +++ b/test/structures/Channel.js @@ -1,6 +1,6 @@ import { expect } from "chai"; import { spy } from "sinon"; -import Channel from "../../src/structures/Channel.js"; +import { Channel } from "../../src/structures.js"; import { TEST_CHANNELS, TEST_CLIENTS, diff --git a/test/structures/Emoji.js b/test/structures/Emoji.js index c1137204..e38aea1b 100644 --- a/test/structures/Emoji.js +++ b/test/structures/Emoji.js @@ -1,5 +1,5 @@ import { expect } from "chai"; -import Emoji from "../../src/structures/Emoji.js"; +import { Emoji } from "../../src/structures.js"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; import Guild from "../../src/structures/Guild.js"; diff --git a/test/structures/Guild.js b/test/structures/Guild.js index 85d80cff..bc00a8bf 100644 --- a/test/structures/Guild.js +++ b/test/structures/Guild.js @@ -1,22 +1,22 @@ import { expect } from "chai"; import { spy } from "sinon"; -import Guild from "../../src/structures/Guild.js"; -import GuildManager from "../../src/managers/GuildManager.js"; import { TEST_CHANNELS, TEST_CLIENTS, TEST_DATA, TEST_GUILDS, } from "../../src/testData.js"; -import Member from "../../src/structures/Member.js"; -import cacheChannel from "../../src/util/gluon/cacheChannel.js"; -import GuildEmojisManager from "../../src/managers/GuildEmojisManager.js"; -import GuildInviteManager from "../../src/managers/GuildInviteManager.js"; -import GuildVoiceStatesManager from "../../src/managers/GuildVoiceStatesManager.js"; -import GuildMemberManager from "../../src/managers/GuildMemberManager.js"; -import GuildChannelsManager from "../../src/managers/GuildChannelsManager.js"; -import GuildCacheOptions from "../../src/managers/GuildCacheOptions.js"; -import Role from "../../src/structures/Role.js"; +import { + Member, + Guild, + GuildEmojisManager, + GuildInviteManager, + GuildVoiceStatesManager, + GuildMemberManager, + GuildChannelsManager, + GuildCacheOptions, + Role, +} from "../../src/structures.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; describe("Guild", function () { diff --git a/test/structures/Interaction.js b/test/structures/Interaction.js index ec812c1e..1aee91eb 100644 --- a/test/structures/Interaction.js +++ b/test/structures/Interaction.js @@ -1,6 +1,5 @@ import { expect } from "chai"; import { spy } from "sinon"; -import Interaction from "../../src/structures/Interaction.js"; import { TEST_CHANNELS, TEST_CLIENTS, @@ -8,7 +7,7 @@ import { TEST_GUILDS, } from "../../src/testData.js"; import TextInput from "../../src/util/builder/textInputBuilder.js"; -import TextChannel from "../../src/structures/TextChannel.js"; +import { Interaction, TextChannel } from "../../src/structures.js"; describe("Interaction", function () { context("check import", function () { diff --git a/test/structures/Invite.js b/test/structures/Invite.js index 747d8835..6fd52e16 100644 --- a/test/structures/Invite.js +++ b/test/structures/Invite.js @@ -6,7 +6,7 @@ import { TEST_DATA, TEST_GUILDS, } from "../../src/testData.js"; -import Invite from "../../src/structures/Invite.js"; +import { Invite } from "../../src/structures.js"; describe("Invite", function () { context("check import", function () { diff --git a/test/structures/Member.js b/test/structures/Member.js index 711a228c..0e175dcd 100644 --- a/test/structures/Member.js +++ b/test/structures/Member.js @@ -1,8 +1,7 @@ import { expect } from "chai"; import { spy } from "sinon"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import Member from "../../src/structures/Member.js"; -import Role from "../../src/structures/Role.js"; +import { Member, Role } from "../../src/structures.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; describe("Member", function () { diff --git a/test/structures/Message.js b/test/structures/Message.js index d511f5d7..76802fd2 100644 --- a/test/structures/Message.js +++ b/test/structures/Message.js @@ -6,17 +6,19 @@ import { TEST_DATA, TEST_GUILDS, } from "../../src/testData.js"; -import Message from "../../src/structures/Message.js"; -import MessageReactionManager from "../../src/managers/MessageReactionManager.js"; -import Member from "../../src/structures/Member.js"; -import Role from "../../src/structures/Role.js"; -import Poll from "../../src/structures/Poll.js"; -import Guild from "../../src/structures/Guild.js"; import File from "../../src/util/builder/file.js"; import MessageComponents from "../../src/util/builder/messageComponents.js"; import path from "path"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; import Embed from "../../src/util/builder/embedBuilder.js"; +import { + Message, + MessageReactionManager, + Member, + Role, + Poll, + Guild, +} from "../../src/structures.js"; describe("Message", function () { context("check import", function () { diff --git a/test/structures/ModalResponse.js b/test/structures/ModalResponse.js index 6f83b9b1..08314d34 100644 --- a/test/structures/ModalResponse.js +++ b/test/structures/ModalResponse.js @@ -1,7 +1,7 @@ import { expect } from "chai"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import ModalResponse from "../../src/structures/ModalResponse.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { ModalResponse } from "../../src/structures.js"; describe("ModalResponse", function () { context("check import", function () { diff --git a/test/structures/OptionSelect.js b/test/structures/OptionSelect.js index 4956a120..5a23dba7 100644 --- a/test/structures/OptionSelect.js +++ b/test/structures/OptionSelect.js @@ -5,8 +5,8 @@ import { TEST_DATA, TEST_GUILDS, } from "../../src/testData.js"; -import OptionSelect from "../../src/structures/OptionSelect.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { OptionSelect } from "../../src/structures.js"; describe("OptionSelect", function () { context("check import", function () { diff --git a/test/structures/PermissionOverwrite.js b/test/structures/PermissionOverwrite.js index 11a30f17..003023d2 100644 --- a/test/structures/PermissionOverwrite.js +++ b/test/structures/PermissionOverwrite.js @@ -1,7 +1,7 @@ import { expect } from "chai"; -import PermissionOverwrite from "../../src/structures/PermissionOverwrite.js"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { PermissionOverwrite } from "../../src/structures.js"; describe("PermissionOverwrite", function () { context("check import", function () { diff --git a/test/structures/Poll.js b/test/structures/Poll.js index a579c080..73225bee 100644 --- a/test/structures/Poll.js +++ b/test/structures/Poll.js @@ -1,9 +1,7 @@ import { expect } from "chai"; -import Poll from "../../src/structures/Poll.js"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import MessagePollManager from "../../src/managers/MessagePollManager.js"; -import Guild from "../../src/structures/Guild.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { Poll, MessagePollManager, Guild } from "../../src/structures.js"; describe("Poll", function () { context("check import", function () { diff --git a/test/structures/Reaction.js b/test/structures/Reaction.js index 69256cec..ba6bb4fa 100644 --- a/test/structures/Reaction.js +++ b/test/structures/Reaction.js @@ -1,10 +1,7 @@ import { expect } from "chai"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import Reaction from "../../src/structures/Reaction.js"; -import Guild from "../../src/structures/Guild.js"; -import Member from "../../src/structures/Member.js"; -import Emoji from "../../src/structures/Emoji.js"; +import { Reaction, Guild, Member, Emoji } from "../../src/structures.js"; describe("Reaction", function () { context("check import", function () { diff --git a/test/structures/Role.js b/test/structures/Role.js index 4a73bf24..ea0f910f 100644 --- a/test/structures/Role.js +++ b/test/structures/Role.js @@ -1,7 +1,7 @@ import { expect } from "chai"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import Role from "../../src/structures/Role.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { Role } from "../../src/structures.js"; describe("Role", function () { context("check import", function () { diff --git a/test/structures/ScheduledEvent.js b/test/structures/ScheduledEvent.js index b260591e..9b03d1fd 100644 --- a/test/structures/ScheduledEvent.js +++ b/test/structures/ScheduledEvent.js @@ -1,9 +1,7 @@ import { expect } from "chai"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import ScheduledEvent from "../../src/structures/ScheduledEvent.js"; -import Guild from "../../src/structures/Guild.js"; -import User from "../../src/structures/User.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { ScheduledEvent, Guild, User } from "../../src/structures.js"; describe("ScheduledEvent", function () { context("check import", function () { diff --git a/test/structures/SlashCommand.js b/test/structures/SlashCommand.js index 17719268..d957ad44 100644 --- a/test/structures/SlashCommand.js +++ b/test/structures/SlashCommand.js @@ -1,6 +1,6 @@ import { expect } from "chai"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import SlashCommand from "../../src/structures/SlashCommand.js"; +import { SlashCommand } from "../../src/structures.js"; describe("SlashCommand", function () { context("check import", function () { diff --git a/test/structures/Sticker.js b/test/structures/Sticker.js index e4a66104..60534d27 100644 --- a/test/structures/Sticker.js +++ b/test/structures/Sticker.js @@ -1,7 +1,7 @@ import { expect } from "chai"; import { CDN_BASE_URL, TO_JSON_TYPES_ENUM } from "../../src/constants.js"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import Sticker from "../../src/structures/Sticker.js"; +import { Sticker } from "../../src/structures.js"; describe("Sticker", function () { context("check import", function () { diff --git a/test/structures/TextChannel.js b/test/structures/TextChannel.js index 553b9611..a455b6e2 100644 --- a/test/structures/TextChannel.js +++ b/test/structures/TextChannel.js @@ -6,10 +6,8 @@ import { TEST_DATA, TEST_GUILDS, } from "../../src/testData.js"; -import TextChannel from "../../src/structures/TextChannel.js"; -import Member from "../../src/structures/Member.js"; -import Role from "../../src/structures/Role.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { TextChannel, Member, Role } from "../../src/structures.js"; describe("TextChannel", function () { context("check import", function () { diff --git a/test/structures/Thread.js b/test/structures/Thread.js index 1bf79e06..f0c02a19 100644 --- a/test/structures/Thread.js +++ b/test/structures/Thread.js @@ -5,9 +5,8 @@ import { TEST_DATA, TEST_GUILDS, } from "../../src/testData.js"; -import Thread from "../../src/structures/Thread.js"; -import Member from "../../src/structures/Member.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { Thread, Member } from "../../src/structures.js"; describe("Thread", function () { context("check import", function () { diff --git a/test/structures/User.js b/test/structures/User.js index cfcf8344..1ae2f99b 100644 --- a/test/structures/User.js +++ b/test/structures/User.js @@ -1,7 +1,7 @@ import { expect } from "chai"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import User from "../../src/structures/User.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { User } from "../../src/structures.js"; describe("User", function () { context("check import", function () { diff --git a/test/structures/VoiceChannel.js b/test/structures/VoiceChannel.js index 951638f0..8ea651f7 100644 --- a/test/structures/VoiceChannel.js +++ b/test/structures/VoiceChannel.js @@ -1,7 +1,7 @@ import { expect } from "chai"; import { TEST_CLIENTS, TEST_DATA, TEST_GUILDS } from "../../src/testData.js"; -import VoiceChannel from "../../src/structures/VoiceChannel.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { VoiceChannel } from "../../src/structures.js"; describe("VoiceChannel", function () { context("check import", function () { diff --git a/test/structures/VoiceState.js b/test/structures/VoiceState.js index 0e1249c5..e8cb46e8 100644 --- a/test/structures/VoiceState.js +++ b/test/structures/VoiceState.js @@ -5,10 +5,8 @@ import { TEST_DATA, TEST_GUILDS, } from "../../src/testData.js"; -import VoiceState from "../../src/structures/VoiceState.js"; -import VoiceChannel from "../../src/structures/VoiceChannel.js"; -import Member from "../../src/structures/Member.js"; import { TO_JSON_TYPES_ENUM } from "../../src/constants.js"; +import { VoiceState, VoiceChannel, Member } from "../../src/structures.js"; describe("VoiceState", function () { context("check import", function () {