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);
|
||||
});
|
||||
});
|
||||
13
src/channels/web/index.ts
Normal file
13
src/channels/web/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
export {
|
||||
createWaSocket,
|
||||
loginWeb,
|
||||
logWebSelfId,
|
||||
monitorWebChannel,
|
||||
monitorWebInbox,
|
||||
pickWebChannel,
|
||||
sendMessageWhatsApp,
|
||||
WA_WEB_AUTH_DIR,
|
||||
waitForWaConnection,
|
||||
webAuthExists,
|
||||
} from "../../channel-web.js";
|
||||
Reference in New Issue
Block a user