test(hooks): keep matcher mirrors in sync

This commit is contained in:
haelyra
2026-08-29 14:55:14 -04:00
parent a4d72b2271
commit fab534f924
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"hooks": {
"SessionStart": [
{
"matcher": "*",
"matcher": ".*",
"hooks": [
{
"type": "command",
+1 -1
View File
@@ -82,7 +82,7 @@ function runTests() {
entries.map(entry => entry.id),
['post:dispatcher:sync', 'post:dispatcher:async']
);
assert.ok(entries.every(entry => entry.matcher === '*'));
assert.ok(entries.every(entry => entry.matcher === '.*'));
assert.strictEqual(entries[0].hooks[0].async, undefined);
assert.strictEqual(entries[1].hooks[0].async, true);
assert.ok(entries[0].hooks[0].command.includes('posttooluse-dispatcher.js'));