mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-11 12:17:57 +02:00
test(hooks): keep matcher mirrors in sync
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"hooks": {
|
||||
"SessionStart": [
|
||||
{
|
||||
"matcher": "*",
|
||||
"matcher": ".*",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user