Skip to content

Commit 7bf4831

Browse files
Fix expectation for query larger unit spector tests (#9636)
Query param values are always evaluated as strings in the test harness.
1 parent 8a53c37 commit 7bf4831

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/http-specs"
5+
---
6+
7+
Fix expectation for query larger unit tests

packages/http-specs/specs/encode/duration/mockapi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Scenarios.Encode_Duration_Query_floatSecondsLargerUnit = createQueryServerTests(
231231
{
232232
input: 150,
233233
},
234-
150,
234+
"150",
235235
);
236236
Scenarios.Encode_Duration_Query_int32MillisecondsLargerUnit = createQueryServerTests(
237237
"/encode/duration/query/int32-milliseconds-larger-unit",
@@ -245,7 +245,7 @@ Scenarios.Encode_Duration_Query_floatMillisecondsLargerUnit = createQueryServerT
245245
{
246246
input: 210000,
247247
},
248-
210000,
248+
"210000",
249249
);
250250

251251
function createHeaderServerTests(uri: string, headersData: any, value: any) {

0 commit comments

Comments
 (0)