Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-14 13:52:54 +01:00
21 Zeilen
399 B
Text
21 Zeilen
399 B
Text
|
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
|
||
|
}
|