mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-20 21:23:23 +00:00
test: drop redundant status-issues skip checks
This commit is contained in:
@@ -52,15 +52,4 @@ describe("collectBlueBubblesStatusIssues", () => {
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it("skips disabled accounts", () => {
|
||||
const issues = collectBlueBubblesStatusIssues([
|
||||
{
|
||||
accountId: "disabled",
|
||||
enabled: false,
|
||||
configured: false,
|
||||
},
|
||||
]);
|
||||
expect(issues).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -67,16 +67,4 @@ describe("collectDiscordStatusIssues", () => {
|
||||
expect(issues[0]?.message).toContain("alerts");
|
||||
expect(issues[0]?.message).toContain("guilds.ops.channels");
|
||||
});
|
||||
|
||||
it("ignores accounts that are not enabled and configured", () => {
|
||||
expect(
|
||||
collectDiscordStatusIssues([
|
||||
{
|
||||
accountId: "ops",
|
||||
enabled: false,
|
||||
configured: true,
|
||||
} as ChannelAccountSnapshot,
|
||||
]),
|
||||
).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -65,15 +65,4 @@ describe("collectWhatsAppStatusIssues", () => {
|
||||
}),
|
||||
]);
|
||||
});
|
||||
|
||||
it("skips disabled accounts", () => {
|
||||
const issues = collectWhatsAppStatusIssues([
|
||||
{
|
||||
accountId: "disabled",
|
||||
enabled: false,
|
||||
linked: false,
|
||||
},
|
||||
]);
|
||||
expect(issues).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -14,16 +14,4 @@ describe("collectZaloStatusIssues", () => {
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it("skips unconfigured accounts", () => {
|
||||
const issues = collectZaloStatusIssues([
|
||||
{
|
||||
accountId: "default",
|
||||
enabled: true,
|
||||
configured: false,
|
||||
dmPolicy: "open",
|
||||
},
|
||||
]);
|
||||
expect(issues).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -28,16 +28,4 @@ describe("collectZalouserStatusIssues", () => {
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it("skips disabled accounts", () => {
|
||||
const issues = collectZalouserStatusIssues([
|
||||
{
|
||||
accountId: "default",
|
||||
enabled: false,
|
||||
configured: false,
|
||||
lastError: "not authenticated",
|
||||
},
|
||||
]);
|
||||
expect(issues).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user