Skip to content

Commit a3bd49c

Browse files
committed
test(dogfood): type the version-token header record the request helper takes
Claude-Session: https://claude.ai/code/session_017xRBcVy4VXmkQjn2MGeaWk Co-authored-by: Claude <noreply@anthropic.com>
1 parent 612f0d3 commit a3bd49c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/qa/dogfood/test/occ-stale-token-organization-wall.dogfood.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('behind the organization wall, a stale version token on another organiz
100100
carrier: Carrier,
101101
version = STALE,
102102
): Promise<Answer> => {
103-
const headers = carrier === 'If-Match' ? { 'If-Match': version } : {};
103+
const headers: Record<string, string> = carrier === 'If-Match' ? { 'If-Match': version } : {};
104104
if (method === 'PATCH') {
105105
const body = carrier === 'expectedVersion' ? { ...patch, expectedVersion: version } : patch;
106106
return call(memberTok, 'PATCH', `/data/${object}/${id}`, body, headers);

‎packages/qa/dogfood/test/update-by-id-refusal-order.dogfood.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe('update by id: one refusal whether or not the id exists, as delete', ()
137137
carrier: Carrier,
138138
version = STALE,
139139
): Promise<Answer> => {
140-
const headers = carrier === 'If-Match' ? { 'If-Match': version } : {};
140+
const headers: Record<string, string> = carrier === 'If-Match' ? { 'If-Match': version } : {};
141141
if (method === 'PATCH') {
142142
const body = carrier === 'expectedVersion' ? { ...patch, expectedVersion: version } : patch;
143143
return call(token, 'PATCH', `/data/${object}/${id}`, body, headers);

0 commit comments

Comments
 (0)