test(#2091): update closed-vocab assertions for hermes extensionEvents dialect
This commit is contained in:
@@ -3967,12 +3967,12 @@ describe('ADR-1016 phase 5a: closed-vocab set exports', () => {
|
|||||||
'opencode-subset is NOT a hookEvents value — it is the extensionEvents vocabulary (#1943)');
|
'opencode-subset is NOT a hookEvents value — it is the extensionEvents vocabulary (#1943)');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('VALID_EXTENSION_EVENTS has the extension-system dialects (opencode/pi/none — #1943)', () => {
|
test('VALID_EXTENSION_EVENTS has the extension-system dialects (opencode/pi/hermes/none — #1943/#2091)', () => {
|
||||||
assert.ok(VALID_EXTENSION_EVENTS instanceof Set);
|
assert.ok(VALID_EXTENSION_EVENTS instanceof Set);
|
||||||
for (const v of ['opencode', 'pi', 'none']) {
|
for (const v of ['opencode', 'pi', 'hermes', 'none']) {
|
||||||
assert.ok(VALID_EXTENSION_EVENTS.has(v), 'VALID_EXTENSION_EVENTS must contain "' + v + '"');
|
assert.ok(VALID_EXTENSION_EVENTS.has(v), 'VALID_EXTENSION_EVENTS must contain "' + v + '"');
|
||||||
}
|
}
|
||||||
assert.strictEqual(VALID_EXTENSION_EVENTS.size, 3);
|
assert.strictEqual(VALID_EXTENSION_EVENTS.size, 4);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('VALID_SANDBOX_TIERS has exactly 2 values', () => {
|
test('VALID_SANDBOX_TIERS has exactly 2 values', () => {
|
||||||
|
|||||||
@@ -74,9 +74,9 @@ describe('extensionEventSurfaceFor (extension-system event dialect — #1943)',
|
|||||||
assert.equal(extensionEventSurfaceFor('nope'), null);
|
assert.equal(extensionEventSurfaceFor('nope'), null);
|
||||||
assert.equal(extensionEventSurfaceFor(undefined), null);
|
assert.equal(extensionEventSurfaceFor(undefined), null);
|
||||||
});
|
});
|
||||||
test('EXTENSION_EVENT_SURFACES is frozen + covers opencode/pi/none', () => {
|
test('EXTENSION_EVENT_SURFACES is frozen + covers opencode/pi/hermes/none', () => {
|
||||||
assert.equal(Object.isFrozen(EXTENSION_EVENT_SURFACES), true);
|
assert.equal(Object.isFrozen(EXTENSION_EVENT_SURFACES), true);
|
||||||
assert.deepEqual(Object.keys(EXTENSION_EVENT_SURFACES).sort(), ['none', 'opencode', 'pi']);
|
assert.deepEqual(Object.keys(EXTENSION_EVENT_SURFACES).sort(), ['hermes', 'none', 'opencode', 'pi']);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user