mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 07:57:39 +00:00
test: remove duplicate line account listing case
This commit is contained in:
@@ -115,24 +115,6 @@ describe("LINE accounts", () => {
|
|||||||
expect(ids).toContain(DEFAULT_ACCOUNT_ID);
|
expect(ids).toContain(DEFAULT_ACCOUNT_ID);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns named accounts", () => {
|
|
||||||
const cfg: OpenClawConfig = {
|
|
||||||
channels: {
|
|
||||||
line: {
|
|
||||||
accounts: {
|
|
||||||
business: { enabled: true },
|
|
||||||
personal: { enabled: true },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const ids = listLineAccountIds(cfg);
|
|
||||||
|
|
||||||
expect(ids).toContain("business");
|
|
||||||
expect(ids).toContain("personal");
|
|
||||||
});
|
|
||||||
|
|
||||||
it("returns default from env", () => {
|
it("returns default from env", () => {
|
||||||
process.env.LINE_CHANNEL_ACCESS_TOKEN = "env-token";
|
process.env.LINE_CHANNEL_ACCESS_TOKEN = "env-token";
|
||||||
const cfg: OpenClawConfig = {};
|
const cfg: OpenClawConfig = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user