fix: complete mock start lifecycle
This commit is contained in:
@@ -204,7 +204,7 @@ export async function mockFetch(url, options) {
|
||||
|
||||
if (url.indexOf("/api/cases/start") === 0 && options && options.method === "POST") {
|
||||
var r1 = await handleStartCase(body && body.scenario);
|
||||
return new Response(JSON.stringify(r1.data), { status: r1.data.success ? 200 : 500, headers:{ "Content-Type":"application/json" } });
|
||||
return new Response(JSON.stringify(r1.data), { status: r1.success ? 200 : 500, headers:{ "Content-Type":"application/json" } });
|
||||
}
|
||||
|
||||
if (url.indexOf("/api/cases/update") === 0 && options && options.method === "POST") {
|
||||
|
||||
Reference in New Issue
Block a user