Skip to content

Commit 00ce427

Browse files
committed
chore: update yarn lockfile
1 parent 8bf596f commit 00ce427

File tree

2 files changed

+59
-183
lines changed

2 files changed

+59
-183
lines changed

packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.spec.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,14 @@ describe(AwsRestJsonProtocol.name, () => {
235235
[SCHEMA.TIMESTAMP_DATE_TIME, { httpHeader: "header-member-trait-date" }],
236236
[SCHEMA.TIMESTAMP_HTTP_DATE, { httpHeader: "header-http-date" }],
237237
[SCHEMA.TIMESTAMP_EPOCH_SECONDS, { httpHeader: "header-epoch-seconds" }],
238-
[sim("ns", "", SCHEMA.TIMESTAMP_EPOCH_SECONDS, 0), 0],
238+
[
239+
sim("ns", "", SCHEMA.TIMESTAMP_EPOCH_SECONDS, 0),
240+
{
241+
httpHeader: "header-target-trait-date",
242+
},
243+
],
239244
[SCHEMA.TIMESTAMP_DEFAULT, { httpQuery: "query-default-date" }],
240-
[SCHEMA.TIMESTAMP_DEFAULT, { httpPayload: 1 }],
245+
[struct("ns", "date", 0, ["payloadDefaultDate"], [SCHEMA.TIMESTAMP_DEFAULT]), { httpPayload: 1 }],
241246
]
242247
),
243248
"unit"
@@ -249,19 +254,25 @@ describe(AwsRestJsonProtocol.name, () => {
249254
headerEpochSeconds: new Date(0),
250255
headerTargetTraitDate: new Date(0),
251256
queryDefaultDate: new Date(0),
252-
payloadDefaultDate: new Date(0),
257+
payloadDefaultDate: {
258+
payloadDefaultDate: new Date(0),
259+
},
253260
},
254261
context
255262
);
256263

264+
expect(request.body).toEqual(`{"payloadDefaultDate":0}`);
265+
257266
expect(request.headers).toEqual({
258-
"content-length": "50",
259267
"content-type": "application/json",
268+
"content-length": "24",
260269
"header-default-date": "Thu, 01 Jan 1970 00:00:00 GMT",
261270
"header-member-trait-date": "1970-01-01T00:00:00Z",
262271
"header-epoch-seconds": "0",
263272
"header-http-date": "Thu, 01 Jan 1970 00:00:00 GMT",
273+
"header-target-trait-date": "0",
264274
});
275+
265276
expect(request.query).toEqual({
266277
"query-default-date": "1970-01-01T00:00:00Z",
267278
});

0 commit comments

Comments
 (0)