test: tighten twitch config assertion

This commit is contained in:
Shakker
2026-05-11 07:19:18 +01:00
parent b6c8314b04
commit 622c8d6d2e

View File

@@ -71,7 +71,10 @@ describe("getAccountConfig", () => {
},
};
expect(getAccountConfig(cfg, "SECONDARY\r\n")).toMatchObject({ username: "secondbot" });
expect(getAccountConfig(cfg, "SECONDARY\r\n")).toEqual({
username: "secondbot",
accessToken: "oauth:secondary",
});
expect(getAccountConfig(cfg, "inherited")).toBeNull();
});