Skip to content

Commit fe8d208

Browse files
committed
test(dogfood): read the data door's flat envelope code for the nested-relation refusal
Claude-Session: https://claude.ai/code/session_01JfJfBUC3cQ6hhgm9MQK76T Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9268169 commit fe8d208

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/qa/dogfood/test/second-object-exposure.dogfood.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ describe('[#22661] a second-object read serves only a target whose declared expo
212212
for (const value of [MARK[rel], 'no-such-name']) {
213213
for (const res of await conditionAnswers(rel, value)) {
214214
const body: any = await res.json();
215-
expect({ status: res.status, code: body?.error?.code }, rel).toEqual({ status, code });
215+
expect({ status: res.status, code: body?.code }, rel).toEqual({ status, code });
216216
}
217217
}
218218
}
@@ -245,6 +245,6 @@ describe('[#22661] a second-object read serves only a target whose declared expo
245245

246246
it('PRECEDENT — a nested-relation condition on a related object the member may not read is refused, unchanged', async () => {
247247
const res = await stack.apiAs(token.member, 'POST', '/data/sox_source/query', { where: { private: { name: MARK.private } } });
248-
expect(res.status, await res.clone().text()).toBe(403);
248+
expect({ status: res.status, code: ((await res.json()) as any)?.code }).toEqual({ status: 403, code: 'PERMISSION_DENIED' });
249249
});
250250
});

0 commit comments

Comments
 (0)