1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/wizard/tests/helpers/step.js.es6
2022-06-15 08:03:38 +02:00

20 Zeilen
399 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
}