Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 11:52:54 +01:00
Use plugin's prettier
Dieser Commit ist enthalten in:
Ursprung
039e478f47
Commit
6792cfb000
2 geänderte Dateien mit 3 neuen und 9 gelöschten Zeilen
|
@ -11,9 +11,7 @@ import { stepNotPermitted, update, wizard } from "../helpers/wizard";
|
|||
|
||||
acceptance("Step | Not permitted", function (needs) {
|
||||
needs.pretender((server, helper) => {
|
||||
server.get("/w/wizard.json", () =>
|
||||
helper.response(stepNotPermitted)
|
||||
);
|
||||
server.get("/w/wizard.json", () => helper.response(stepNotPermitted));
|
||||
});
|
||||
|
||||
test("Shows not permitted message", async function (assert) {
|
||||
|
@ -25,9 +23,7 @@ acceptance("Step | Not permitted", function (needs) {
|
|||
acceptance("Step | Step", function (needs) {
|
||||
needs.pretender((server, helper) => {
|
||||
server.get("/w/wizard.json", () => helper.response(wizard));
|
||||
server.put("/w/wizard/steps/:step_id", () =>
|
||||
helper.response(update)
|
||||
);
|
||||
server.put("/w/wizard/steps/:step_id", () => helper.response(update));
|
||||
});
|
||||
|
||||
test("Renders the step", async function (assert) {
|
||||
|
|
|
@ -27,9 +27,7 @@ acceptance("Wizard | Not logged in", function (needs) {
|
|||
acceptance("Wizard | Not permitted", function (needs) {
|
||||
needs.user();
|
||||
needs.pretender((server, helper) => {
|
||||
server.get("/w/wizard.json", () =>
|
||||
helper.response(wizardNotPermitted)
|
||||
);
|
||||
server.get("/w/wizard.json", () => helper.response(wizardNotPermitted));
|
||||
});
|
||||
|
||||
test("Wizard no access not permitted", async function (assert) {
|
||||
|
|
Laden …
In neuem Issue referenzieren