perf(test): consolidate channel misc suites

This commit is contained in:
Peter Steinberger
2026-02-15 23:38:52 +00:00
parent 5709b30700
commit f934725ccd
4 changed files with 56 additions and 59 deletions

View File

@@ -1,18 +0,0 @@
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);
});
});