Skip to content

Commit 3bf9be7

Browse files
committed
test(metadata-protocol): the layered-read pin's double answers the registry's item read
Claude-Session: https://claude.ai/code/session_01JQwxbaKY2r8oRQXNGhYHHg Co-authored-by: Claude <noreply@anthropic.com>
1 parent e905c02 commit 3bf9be7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/metadata-protocol/src/protocol.draft-publish-verdict.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,10 @@ describe('[#29696] a flow read judges a stored legacy D2 row in its D2-converted
11791179
});
11801180

11811181
it('the layered read reads valid: true', async () => {
1182-
const { protocol } = await seeded(fetchFlow('legacy_fetch', 'filters'));
1182+
const { engine, protocol } = await seeded(fetchFlow('legacy_fetch', 'filters'));
1183+
// The layered read asks the registry for the shipped layer; this
1184+
// double ships none.
1185+
engine.registry.getItem = () => undefined;
11831186

11841187
const layered: any = await protocol.getMetaItemLayered({ type: 'flow', name: 'legacy_fetch', packageId: PKG } as any);
11851188

0 commit comments

Comments
 (0)