2022-03-16 12:33:34 +01:00
|
|
|
import updateJson from "../fixtures/update";
|
|
|
|
import { cloneJSON } from "discourse-common/lib/object";
|
|
|
|
import wizardJson from "../fixtures/wizard";
|
|
|
|
|
|
|
|
const update = cloneJSON(updateJson);
|
|
|
|
update.wizard = cloneJSON(wizardJson);
|
|
|
|
|
2022-06-15 08:59:09 +02:00
|
|
|
const saveStep = function (response) {
|
2022-03-16 12:33:34 +01:00
|
|
|
return {
|
|
|
|
verb: "put",
|
2022-06-15 08:59:09 +02:00
|
|
|
path: "/w/wizard/steps/:step_id",
|
2022-03-16 12:33:34 +01:00
|
|
|
status: 200,
|
2022-06-15 08:59:09 +02:00
|
|
|
response,
|
|
|
|
};
|
|
|
|
};
|
2022-03-16 12:33:34 +01:00
|
|
|
|
2022-06-15 08:59:09 +02:00
|
|
|
export { saveStep, update };
|