summaryrefslogtreecommitdiffhomepage
path: root/src/core/plugin-abi/driver.test.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-09-05 17:33:06 +0900
committerAdam Malczewski <[email protected]>2026-09-05 17:33:06 +0900
commit254f90a4081a3f15dfe54277da922579dbaee254 (patch)
treef5f4e409196109baf938cd9d557e244242df18ce /src/core/plugin-abi/driver.test.ts
parent535215bfd1fee6087613108f42d28cd2807184d3 (diff)
downloaddispatch-web-254f90a4081a3f15dfe54277da922579dbaee254.tar.gz
dispatch-web-254f90a4081a3f15dfe54277da922579dbaee254.zip
feat(layout): plan 04 — ABI layout.applyOps + reset affordance
Diffstat (limited to 'src/core/plugin-abi/driver.test.ts')
-rw-r--r--src/core/plugin-abi/driver.test.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/plugin-abi/driver.test.ts b/src/core/plugin-abi/driver.test.ts
index e8c8e7e..b02c76b 100644
--- a/src/core/plugin-abi/driver.test.ts
+++ b/src/core/plugin-abi/driver.test.ts
@@ -41,7 +41,7 @@ function harness(): Harness {
return mod;
},
buildHostApi: (pluginId) => ({
- abiVersion: "1",
+ abiVersion: "1.1",
registerView: () => () => {},
surfaces: {
subscribe: () => {},
@@ -50,6 +50,10 @@ function harness(): Harness {
getSpec: () => null,
},
logger: { info: () => {}, warn: () => {} },
+ layout: {
+ applyOps: async () => ({ ok: false, error: "no layout provider active" }),
+ getTree: () => null,
+ },
...(pluginId === undefined ? {} : {}),
}),
unregisterViewsByPlugin: (pluginId) => sweeps.push(pluginId),