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) {
|
acceptance("Step | Not permitted", function (needs) {
|
||||||
needs.pretender((server, helper) => {
|
needs.pretender((server, helper) => {
|
||||||
server.get("/w/wizard.json", () =>
|
server.get("/w/wizard.json", () => helper.response(stepNotPermitted));
|
||||||
helper.response(stepNotPermitted)
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Shows not permitted message", async function (assert) {
|
test("Shows not permitted message", async function (assert) {
|
||||||
|
@ -25,9 +23,7 @@ acceptance("Step | Not permitted", function (needs) {
|
||||||
acceptance("Step | Step", function (needs) {
|
acceptance("Step | Step", function (needs) {
|
||||||
needs.pretender((server, helper) => {
|
needs.pretender((server, helper) => {
|
||||||
server.get("/w/wizard.json", () => helper.response(wizard));
|
server.get("/w/wizard.json", () => helper.response(wizard));
|
||||||
server.put("/w/wizard/steps/:step_id", () =>
|
server.put("/w/wizard/steps/:step_id", () => helper.response(update));
|
||||||
helper.response(update)
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Renders the step", async function (assert) {
|
test("Renders the step", async function (assert) {
|
||||||
|
|
|
@ -27,9 +27,7 @@ acceptance("Wizard | Not logged in", function (needs) {
|
||||||
acceptance("Wizard | Not permitted", function (needs) {
|
acceptance("Wizard | Not permitted", function (needs) {
|
||||||
needs.user();
|
needs.user();
|
||||||
needs.pretender((server, helper) => {
|
needs.pretender((server, helper) => {
|
||||||
server.get("/w/wizard.json", () =>
|
server.get("/w/wizard.json", () => helper.response(wizardNotPermitted));
|
||||||
helper.response(wizardNotPermitted)
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Wizard no access not permitted", async function (assert) {
|
test("Wizard no access not permitted", async function (assert) {
|
||||||
|
|
Laden …
In neuem Issue referenzieren