update to use MockApiDefinition

This commit is contained in:
Weidong Xu 2024-11-11 15:30:49 +08:00
Родитель 559dd48416
Коммит 7fb502f3f0
1 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -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",
});