DEV: apply new coding standards (#10592)

This commit is contained in:
Joffrey JAFFEUX
2020-09-04 13:42:47 +02:00
committed by GitHub
parent 80dfaeb0d2
commit 52672b9eab
1473 changed files with 9386 additions and 9958 deletions
@@ -4,7 +4,7 @@ import Category from "discourse/models/category";
moduleForWidget("topic-admin-menu-button");
const createArgs = topic => {
const createArgs = (topic) => {
return {
topic: topic,
openUpwards: "true",
@@ -19,7 +19,7 @@ const createArgs = topic => {
showChangeTimestamp: () => {},
resetBumpDate: () => {},
convertToPublicTopic: () => {},
convertToPrivateMessage: () => {}
convertToPrivateMessage: () => {},
};
};
@@ -30,7 +30,7 @@ widgetTest("topic-admin-menu-button is present for admin/moderators", {
this.currentUser.setProperties({
admin: true,
moderator: true,
id: 123
id: 123,
});
const topic = Topic.create({ user_id: this.currentUser.id });
topic.category = Category.create({ read_restricted: true });
@@ -40,7 +40,7 @@ widgetTest("topic-admin-menu-button is present for admin/moderators", {
test(assert) {
assert.ok(exists(".toggle-admin-menu"), "admin wrench is present");
}
},
});
widgetTest(
@@ -52,7 +52,7 @@ widgetTest(
this.currentUser.setProperties({
admin: false,
moderator: false,
id: 123
id: 123,
});
const topic = Topic.create({ user_id: this.currentUser.id });
topic.category = Category.create({ read_restricted: true });
@@ -62,6 +62,6 @@ widgetTest(
test(assert) {
assert.ok(!exists(".toggle-admin-menu"), "admin wrench is not present");
}
},
}
);