Skip to content

Commit 045a193

Browse files
committed
test(runtime): respell the dispatcher _drafts plumbing case to ?package=
Claude-Session: https://claude.ai/code/session_01FEkQ5mNZhe975x6zR3ULqS Co-authored-by: Claude <noreply@anthropic.com>
1 parent cf2af47 commit 045a193

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/runtime/src/http-dispatcher.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,7 @@ describe('HttpDispatcher', () => {
25082508
// the shared ADR-0106 case table (`domains/meta-object-fls.test.ts`).
25092509
const AUTHOR = { userId: 'u1', systemPermissions: ['studio.access'] };
25102510

2511-
it('routes to protocol.listDrafts with packageId + type and returns drafts', async () => {
2511+
it('routes to protocol.listDrafts with ?package= + type and returns drafts', async () => {
25122512
const listDrafts = vi.fn().mockResolvedValue({
25132513
drafts: [{ type: 'object', name: 'course', packageId: 'app.edu', updatedAt: 't1', updatedBy: 'ai' }],
25142514
});
@@ -2518,7 +2518,8 @@ describe('HttpDispatcher', () => {
25182518
});
25192519

25202520
const result = await dispatcher.handleMetadata('_drafts', { request: {}, executionContext: { ...AUTHOR } } as any, 'GET', undefined, {
2521-
packageId: 'app.edu',
2521+
// [#31490] the wire spelling is `?package=`; it reaches listDrafts as `packageId`.
2522+
package: 'app.edu',
25222523
type: 'object',
25232524
});
25242525

0 commit comments

Comments
 (0)