mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 19:22:22 +00:00
27 lines
485 B
TypeScript
27 lines
485 B
TypeScript
export function removeStub(service: string, method: string) {
|
|
return cy.request({
|
|
url: "http://localhost:22220/v1/stubs",
|
|
method: "DELETE",
|
|
qs: {
|
|
service,
|
|
method,
|
|
},
|
|
});
|
|
}
|
|
|
|
export function addStub(service: string, method: string, out?: any) {
|
|
return cy.request({
|
|
url: "http://localhost:22220/v1/stubs",
|
|
method: "POST",
|
|
body: {
|
|
stubs: [
|
|
{
|
|
service,
|
|
method,
|
|
out,
|
|
},
|
|
],
|
|
},
|
|
});
|
|
}
|