@@ -40,7 +40,7 @@ describe("bundled channel entry shape guards", () => {
|
40 | 40 | expect(bundled.listBundledChannelSetupPlugins()).toEqual([]); |
41 | 41 | }); |
42 | 42 | |
43 | | -it("loads real bundled channel entries from the source tree", async () => { |
| 43 | +it("loads real bundled channel entry contracts from the source tree", async () => { |
44 | 44 | vi.doMock("../../plugins/bundled-channel-runtime.js", async (importOriginal) => { |
45 | 45 | const actual = |
46 | 46 | await importOriginal<typeof import("../../plugins/bundled-channel-runtime.js")>(); |
@@ -52,9 +52,7 @@ describe("bundled channel entry shape guards", () => {
|
52 | 52 | }) => |
53 | 53 | actual |
54 | 54 | .listBundledChannelPluginMetadata(params) |
55 | | -.filter( |
56 | | -(metadata) => metadata.manifest.id === "slack" || metadata.manifest.id === "line", |
57 | | -), |
| 55 | +.filter((metadata) => metadata.manifest.id === "slack"), |
58 | 56 | }; |
59 | 57 | }); |
60 | 58 | |
@@ -63,18 +61,8 @@ describe("bundled channel entry shape guards", () => {
|
63 | 61 | "./bundled.js?scope=real-bundled-source-tree", |
64 | 62 | ); |
65 | 63 | |
66 | | -expect(bundled.requireBundledChannelPlugin("slack").id).toBe("slack"); |
67 | | -expect(() => |
68 | | -bundled.setBundledChannelRuntime("line", { |
69 | | -channel: { |
70 | | -line: { |
71 | | -listLineAccountIds: () => [], |
72 | | -resolveDefaultLineAccountId: () => undefined, |
73 | | -resolveLineAccount: () => null, |
74 | | -}, |
75 | | -}, |
76 | | -} as never), |
77 | | -).not.toThrow(); |
| 64 | +expect(bundled.listBundledChannelPluginIds()).toEqual(["slack"]); |
| 65 | +expect(bundled.hasBundledChannelEntryFeature("slack", "accountInspect")).toBe(true); |
78 | 66 | }); |
79 | 67 | |
80 | 68 | it("uses the active bundled plugin root override for channel entry loading", async () => { |
|