Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Aug 17, 2024
1 parent f65cbed commit a203d70
Show file tree
Hide file tree
Showing 25 changed files with 43 additions and 55 deletions.
2 changes: 1 addition & 1 deletion test/structures/Attachment.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
4 changes: 2 additions & 2 deletions test/structures/AuditLog.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/ButtonClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/CategoryChannel.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion test/structures/Channel.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/structures/Emoji.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
22 changes: 11 additions & 11 deletions test/structures/Guild.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
3 changes: 1 addition & 2 deletions test/structures/Interaction.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { expect } from "chai";
import { spy } from "sinon";
import Interaction from "../../src/structures/Interaction.js";
import {
TEST_CHANNELS,
TEST_CLIENTS,
TEST_DATA,
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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/Invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
3 changes: 1 addition & 2 deletions test/structures/Member.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
14 changes: 8 additions & 6 deletions test/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/ModalResponse.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/OptionSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/PermissionOverwrite.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
4 changes: 1 addition & 3 deletions test/structures/Poll.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
5 changes: 1 addition & 4 deletions test/structures/Reaction.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/Role.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
4 changes: 1 addition & 3 deletions test/structures/ScheduledEvent.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/SlashCommand.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/Sticker.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
4 changes: 1 addition & 3 deletions test/structures/TextChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
3 changes: 1 addition & 2 deletions test/structures/Thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/User.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion test/structures/VoiceChannel.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
4 changes: 1 addition & 3 deletions test/structures/VoiceState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit a203d70

Please sign in to comment.