refactor!: rename chat providers to channels
This commit is contained in:
19
src/channels/web/index.test.ts
Normal file
19
src/channels/web/index.test.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import * as impl from "../../channel-web.js";
|
||||
import * as entry from "./index.js";
|
||||
|
||||
describe("channels/web entrypoint", () => {
|
||||
it("re-exports web channel helpers", () => {
|
||||
expect(entry.createWaSocket).toBe(impl.createWaSocket);
|
||||
expect(entry.loginWeb).toBe(impl.loginWeb);
|
||||
expect(entry.logWebSelfId).toBe(impl.logWebSelfId);
|
||||
expect(entry.monitorWebInbox).toBe(impl.monitorWebInbox);
|
||||
expect(entry.monitorWebChannel).toBe(impl.monitorWebChannel);
|
||||
expect(entry.pickWebChannel).toBe(impl.pickWebChannel);
|
||||
expect(entry.sendMessageWhatsApp).toBe(impl.sendMessageWhatsApp);
|
||||
expect(entry.WA_WEB_AUTH_DIR).toBe(impl.WA_WEB_AUTH_DIR);
|
||||
expect(entry.waitForWaConnection).toBe(impl.waitForWaConnection);
|
||||
expect(entry.webAuthExists).toBe(impl.webAuthExists);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user