зеркало из https://github.com/Azure/cadl-ranch.git
update to use MockApiDefinition
This commit is contained in:
Родитель
559dd48416
Коммит
7fb502f3f0
|
@ -3,10 +3,12 @@ import { ScenarioMockApi } from "@azure-tools/cadl-ranch-api";
|
|||
|
||||
export const Scenarios: Record<string, ScenarioMockApi> = {};
|
||||
|
||||
Scenarios.Client_Initialization_Basic = passOnSuccess(
|
||||
mockapi.post("/client/initialization/basic/sub-client/subclient1:action", (req) => {
|
||||
return {
|
||||
status: 204,
|
||||
};
|
||||
}),
|
||||
);
|
||||
Scenarios.Client_Initialization_Basic = passOnSuccess({
|
||||
uri: "/client/initialization/basic/sub-client/subclient1:action",
|
||||
method: "post",
|
||||
request: {},
|
||||
response: {
|
||||
status: 204,
|
||||
},
|
||||
kind: "MockApiDefinition",
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче