Tests: cover Twitch runtime barrel
This commit is contained in:
parent
d341d68180
commit
82f1e3334c
13
extensions/twitch/src/runtime-api.test.ts
Normal file
13
extensions/twitch/src/runtime-api.test.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("twitch runtime-api", () => {
|
||||
it("re-exports the runtime helpers used by Twitch internals", async () => {
|
||||
const runtimeApi = await import("../runtime-api.js");
|
||||
|
||||
expect(runtimeApi.DEFAULT_ACCOUNT_ID).toBe("default");
|
||||
expect(runtimeApi.MarkdownConfigSchema).toBeDefined();
|
||||
expect(typeof runtimeApi.buildChannelConfigSchema).toBe("function");
|
||||
expect(typeof runtimeApi.createReplyPrefixOptions).toBe("function");
|
||||
expect(typeof runtimeApi.normalizeAccountId).toBe("function");
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user