parent
926567c9cd
commit
bc98d6ba75
1 changed files with 0 additions and 57 deletions
|
@ -151,21 +151,6 @@ describe("Confirm", () => {
|
|||
});
|
||||
|
||||
test("GIVEN id is not supplied, EXPECT error", async () => {
|
||||
// Assert
|
||||
const embed = {
|
||||
id: "embed",
|
||||
setColor: jest.fn(),
|
||||
setFooter: jest.fn(),
|
||||
};
|
||||
const row = {
|
||||
id: "row",
|
||||
};
|
||||
|
||||
(EffectHelper.GenerateEffectBuyEmbed as jest.Mock).mockResolvedValue({
|
||||
embed,
|
||||
row,
|
||||
});
|
||||
|
||||
// Act
|
||||
await Buy.Execute(interaction as unknown as ButtonInteraction);
|
||||
|
||||
|
@ -182,20 +167,6 @@ describe("Confirm", () => {
|
|||
// Assert
|
||||
interaction.customId += " unclaimed";
|
||||
|
||||
const embed = {
|
||||
id: "embed",
|
||||
setColor: jest.fn(),
|
||||
setFooter: jest.fn(),
|
||||
};
|
||||
const row = {
|
||||
id: "row",
|
||||
};
|
||||
|
||||
(EffectHelper.GenerateEffectBuyEmbed as jest.Mock).mockResolvedValue({
|
||||
embed,
|
||||
row,
|
||||
});
|
||||
|
||||
// Act
|
||||
await Buy.Execute(interaction as unknown as ButtonInteraction);
|
||||
|
||||
|
@ -212,20 +183,6 @@ describe("Confirm", () => {
|
|||
// Assert
|
||||
interaction.customId += " unclaimed invalid";
|
||||
|
||||
const embed = {
|
||||
id: "embed",
|
||||
setColor: jest.fn(),
|
||||
setFooter: jest.fn(),
|
||||
};
|
||||
const row = {
|
||||
id: "row",
|
||||
};
|
||||
|
||||
(EffectHelper.GenerateEffectBuyEmbed as jest.Mock).mockResolvedValue({
|
||||
embed,
|
||||
row,
|
||||
});
|
||||
|
||||
// Act
|
||||
await Buy.Execute(interaction as unknown as ButtonInteraction);
|
||||
|
||||
|
@ -242,20 +199,6 @@ describe("Confirm", () => {
|
|||
// Assert
|
||||
interaction.customId += " unclaimed 0";
|
||||
|
||||
const embed = {
|
||||
id: "embed",
|
||||
setColor: jest.fn(),
|
||||
setFooter: jest.fn(),
|
||||
};
|
||||
const row = {
|
||||
id: "row",
|
||||
};
|
||||
|
||||
(EffectHelper.GenerateEffectBuyEmbed as jest.Mock).mockResolvedValue({
|
||||
embed,
|
||||
row,
|
||||
});
|
||||
|
||||
// Act
|
||||
await Buy.Execute(interaction as unknown as ButtonInteraction);
|
||||
|
||||
|
|
Loading…
Reference in a new issue