Add CLI and infra test coverage
This commit is contained in:
10
src/webhook/server.test.ts
Normal file
10
src/webhook/server.test.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import * as impl from "../twilio/webhook.js";
|
||||
import * as entry from "./server.js";
|
||||
|
||||
describe("webhook server wrapper", () => {
|
||||
it("re-exports startWebhook", () => {
|
||||
expect(entry.startWebhook).toBe(impl.startWebhook);
|
||||
});
|
||||
});
|
||||
15
src/webhook/update.test.ts
Normal file
15
src/webhook/update.test.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import * as impl from "../twilio/update-webhook.js";
|
||||
import * as entry from "./update.js";
|
||||
|
||||
describe("webhook update wrappers", () => {
|
||||
it("mirror the Twilio implementations", () => {
|
||||
expect(entry.updateWebhook).toBe(impl.updateWebhook);
|
||||
expect(entry.findIncomingNumberSid).toBe(impl.findIncomingNumberSid);
|
||||
expect(entry.findMessagingServiceSid).toBe(impl.findMessagingServiceSid);
|
||||
expect(entry.setMessagingServiceWebhook).toBe(
|
||||
impl.setMessagingServiceWebhook,
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user