0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 09:50:28 +01:00
discourse-custom-wizard/assets/javascripts/wizard/tests/helpers/step.js.es6
2022-03-16 12:46:16 +01:00

17 Zeilen
400 B
JavaScript

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);
const saveStep = function (response) {
return {
verb: "put",
path: "/w/wizard/steps/:step_id",
status: 200,
response,
};
};
export { saveStep, update };