Skip to content

Commit

Permalink
revert previous fix since the errors are due to dotnet test case prob…
Browse files Browse the repository at this point in the history
…lems
  • Loading branch information
Mingzhe Huang (from Dev Box) committed Nov 11, 2024
1 parent d4edbea commit 35058b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { json, passOnCode, passOnSuccess, MockRequest } from "@azure-tools/cadl-ranch-api";
import { json, passOnCode, passOnSuccess } from "@azure-tools/cadl-ranch-api";
import { ScenarioMockApi } from "@azure-tools/cadl-ranch-api";

export const Scenarios: Record<string, ScenarioMockApi> = {};
Expand Down Expand Up @@ -32,13 +32,5 @@ Scenarios.Authentication_ApiKey_invalid = passOnCode(403, {
error: "invalid-api-key",
}),
},
handler: (req: MockRequest) => {
return {
status: 403,
body: json({
error: "invalid-api-key",
}),
};
},
kind: "MockApiDefinition",
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { json, passOnSuccess, passOnCode, MockRequest } from "@azure-tools/cadl-ranch-api";
import { json, passOnSuccess, passOnCode } from "@azure-tools/cadl-ranch-api";
import { ScenarioMockApi } from "@azure-tools/cadl-ranch-api";

export const Scenarios: Record<string, ScenarioMockApi> = {};
Expand Down Expand Up @@ -32,13 +32,5 @@ Scenarios.Authentication_Http_Custom_invalid = passOnCode(403, {
error: "invalid-api-key",
}),
},
handler: (req: MockRequest) => {
return {
status: 403,
body: json({
error: "invalid-api-key",
}),
};
},
kind: "MockApiDefinition",
});

0 comments on commit 35058b8

Please sign in to comment.