Skip to content

Commit 689249f

Browse files
committed
Cover unknown plugin modules as disabled on the Plugins surface
1 parent 48247f2 commit 689249f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/tui/plugin-surface.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const bundledSkills: PluginModule = {
1414
};
1515

1616
describe("isPluginEnabledForSurface", () => {
17+
test("projects an unknown plugin as disabled", () => {
18+
expect(isPluginEnabledForSurface(undefined, {})).toBe(false);
19+
});
20+
1721
test("projects a bundled default-on plugin as enabled without settings", () => {
1822
expect(isPluginEnabledForSurface(bundledSkills, {})).toBe(true);
1923
});

0 commit comments

Comments
 (0)