From e38de909068ea9dfb696c7c1b7a08aa633b9c8e0 Mon Sep 17 00:00:00 2001 From: Crystal YU Date: Fri, 8 Mar 2024 13:49:19 +0800 Subject: [PATCH] Azure location scalar test (#533) * add test for azureLocation scalar * resolve lint failure * typo * resolve typo --- .changeset/fuzzy-mice-try.md | 5 +++++ packages/cadl-ranch-specs/http/azure/core/scalar/mockapi.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fuzzy-mice-try.md diff --git a/.changeset/fuzzy-mice-try.md b/.changeset/fuzzy-mice-try.md new file mode 100644 index 000000000..7d6677032 --- /dev/null +++ b/.changeset/fuzzy-mice-try.md @@ -0,0 +1,5 @@ +--- +"@azure-tools/cadl-ranch-specs": patch +--- + +resolve typo in azureLocation scalar test \ No newline at end of file diff --git a/packages/cadl-ranch-specs/http/azure/core/scalar/mockapi.ts b/packages/cadl-ranch-specs/http/azure/core/scalar/mockapi.ts index f572587c5..667d389c4 100644 --- a/packages/cadl-ranch-specs/http/azure/core/scalar/mockapi.ts +++ b/packages/cadl-ranch-specs/http/azure/core/scalar/mockapi.ts @@ -38,7 +38,7 @@ Scenarios.Azure_Core_Scalar_AzureLocationScalar_header = passOnSuccess( Scenarios.Azure_Core_Scalar_AzureLocationScalar_query = passOnSuccess( mockapi.post("/azure/core/scalar/azureLocation/query", (req) => { - req.expect.containsQueryParam("regen", "eastus"); + req.expect.containsQueryParam("region", "eastus"); return { status: 204 }; }),