mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-02 14:08:44 +02:00
test(opencode): guard plugin.tool existence before shape assertion
This commit is contained in:
@@ -90,6 +90,7 @@ function main() {
|
||||
for (const hook of expectedHooks) {
|
||||
assert.strictEqual(typeof plugin[hook], "function", "missing hook: " + hook)
|
||||
}
|
||||
assert.ok(plugin.tool && typeof plugin.tool === "object", "plugin record must expose a tool object")
|
||||
assert.deepStrictEqual(
|
||||
Object.keys(plugin.tool).sort(),
|
||||
["changed-files", "dependency-analyzer"],
|
||||
|
||||
Reference in New Issue
Block a user