mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tighten channel empty array assertions
This commit is contained in:
@@ -353,7 +353,7 @@ describe("extractMentions", () => {
|
||||
|
||||
it("returns empty array when no mentions", () => {
|
||||
const mentions = extractMentions("hello everyone");
|
||||
expect(mentions).toEqual([]);
|
||||
expect(mentions).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("handles mentions at start of message", () => {
|
||||
@@ -383,6 +383,6 @@ describe("extractMentions", () => {
|
||||
|
||||
it("handles empty string", () => {
|
||||
const mentions = extractMentions("");
|
||||
expect(mentions).toEqual([]);
|
||||
expect(mentions).toStrictEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -207,8 +207,8 @@ describe("send", () => {
|
||||
|
||||
expect(result.ok).toBe(true);
|
||||
expect(result.messageId).toBe("skipped");
|
||||
expect(result.receipt.platformMessageIds).toEqual([]);
|
||||
expect(result.receipt.parts).toEqual([]);
|
||||
expect(result.receipt.platformMessageIds).toStrictEqual([]);
|
||||
expect(result.receipt.parts).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should return error when client manager not found", async () => {
|
||||
|
||||
@@ -210,7 +210,7 @@ describe("status", () => {
|
||||
it("should handle empty snapshots array", () => {
|
||||
const issues = collectTwitchStatusIssues([]);
|
||||
|
||||
expect(issues).toEqual([]);
|
||||
expect(issues).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should skip non-Twitch accounts gracefully", () => {
|
||||
|
||||
Reference in New Issue
Block a user