Skip to content

A platform for community discussion. Free, open, simple.

DEV: Name all test fixtures for easier auto-import (#38665)

Jarek Radoszcfa690841c6c
diff --git a/frontend/discourse/tests/fixtures/about.js b/frontend/discourse/tests/fixtures/about.js
index e52a09772ee..fee219d4836 100644
--- a/frontend/discourse/tests/fixtures/about.js
+++ b/frontend/discourse/tests/fixtures/about.js
@@ -1,4 +1,4 @@
-export default {
+const aboutFixtures = {
"about.json": {
users: [
{
@@ -71,3 +71,5 @@ export default {
},
},
};
+
+export default aboutFixtures;
diff --git a/frontend/discourse/tests/fixtures/admin-search-fixtures.js b/frontend/discourse/tests/fixtures/admin-search-fixtures.js
index 0288e88f9df..dc283062564 100644
--- a/frontend/discourse/tests/fixtures/admin-search-fixtures.js
+++ b/frontend/discourse/tests/fixtures/admin-search-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const adminSearchFixtures = {
"/admin/search/all.json": {
settings: [
{
@@ -66,3 +66,5 @@ export default {
],
},
};
+
+export default adminSearchFixtures;
diff --git a/frontend/discourse/tests/fixtures/badges-fixture.js b/frontend/discourse/tests/fixtures/badges-fixture.js
index 664b3474de6..c8c2fceb0a7 100644
--- a/frontend/discourse/tests/fixtures/badges-fixture.js
+++ b/frontend/discourse/tests/fixtures/badges-fixture.js
@@ -1,4 +1,4 @@
-export default {
+const badgesFixtures = {
"/badges.json": {
badge_types: [
{
@@ -1732,3 +1732,5 @@ export default {
],
},
};
+
+export default badgesFixtures;
diff --git a/frontend/discourse/tests/fixtures/category-fixtures.js b/frontend/discourse/tests/fixtures/category-fixtures.js
index 4f96a6761b1..de36b2c9f15 100644
--- a/frontend/discourse/tests/fixtures/category-fixtures.js
+++ b/frontend/discourse/tests/fixtures/category-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const categoryFixtures = {
"/c/1/show.json": {
category: {
id: 1,
@@ -152,3 +152,5 @@ export default {
},
},
};
+
+export default categoryFixtures;
diff --git a/frontend/discourse/tests/fixtures/dashboard-general.js b/frontend/discourse/tests/fixtures/dashboard-general.js
index f4530033c8c..9685bc862bf 100644
--- a/frontend/discourse/tests/fixtures/dashboard-general.js
+++ b/frontend/discourse/tests/fixtures/dashboard-general.js
@@ -1,6 +1,8 @@
-export default {
+const dashboardGeneralFixtures = {
"/admin/dashboard/general.json": {
reports: [],
updated_at: "2018-04-25T08:06:11.292Z",
},
};
+
+export default dashboardGeneralFixtures;
diff --git a/frontend/discourse/tests/fixtures/dashboard-whats-new.js b/frontend/discourse/tests/fixtures/dashboard-whats-new.js
index ec14e25bc73..1e03fafd611 100644
--- a/frontend/discourse/tests/fixtures/dashboard-whats-new.js
+++ b/frontend/discourse/tests/fixtures/dashboard-whats-new.js
@@ -1,4 +1,4 @@
-export default {
+const dashboardWhatsNewFixtures = {
"/admin/whats-new.json": {
new_features: [
{
@@ -32,3 +32,5 @@ export default {
"https://meta.discourse.org/c/announcements/67?tags=release-notes\u0026before=0",
},
};
+
+export default dashboardWhatsNewFixtures;
diff --git a/frontend/discourse/tests/fixtures/dashboard.js b/frontend/discourse/tests/fixtures/dashboard.js
index 036e557f50f..6985f718227 100644
--- a/frontend/discourse/tests/fixtures/dashboard.js
+++ b/frontend/discourse/tests/fixtures/dashboard.js
@@ -1,6 +1,8 @@
-export default {
+const dashboardFixtures = {
"/admin/dashboard.json": {
updated_at: "2018-04-25T08:06:11.292Z",
has_unseen_features: true
},
};
+
+export default dashboardFixtures;
diff --git a/frontend/discourse/tests/fixtures/directory-fixtures.js b/frontend/discourse/tests/fixtures/directory-fixtures.js
index 2c79cc41417..0cc1e9686dc 100644
--- a/frontend/discourse/tests/fixtures/directory-fixtures.js
+++ b/frontend/discourse/tests/fixtures/directory-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const directoryFixtures = {
directory_items: {
directory_items: [
{
@@ -618,3 +618,5 @@ export default {
},
},
};
+
+export default directoryFixtures;
diff --git a/frontend/discourse/tests/fixtures/discovery-fixtures.js b/frontend/discourse/tests/fixtures/discovery-fixtures.js
index 7f1fdf87cc5..cd3e2333adf 100644
--- a/frontend/discourse/tests/fixtures/discovery-fixtures.js
+++ b/frontend/discourse/tests/fixtures/discovery-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const discoveryFixtures = {
"/latest.json": {
users: [
{ id: 7204, username: "reyman64", avatar_template: "/images/avatar.png" },
@@ -6655,3 +6655,5 @@ export default {
},
},
};
+
+export default discoveryFixtures;
diff --git a/frontend/discourse/tests/fixtures/drafts.js b/frontend/discourse/tests/fixtures/drafts.js
index d5a49ade998..0d2ada427c0 100644
--- a/frontend/discourse/tests/fixtures/drafts.js
+++ b/frontend/discourse/tests/fixtures/drafts.js
@@ -1,4 +1,4 @@
-export default {
+const draftsFixtures = {
"/drafts.json": {
drafts: [
{
@@ -72,3 +72,5 @@ export default {
draft_sequence: 42,
},
};
+
+export default draftsFixtures;
diff --git a/frontend/discourse/tests/fixtures/emojis-fixtures.js b/frontend/discourse/tests/fixtures/emojis-fixtures.js
index 30a0930435f..a4f32f3b9e2 100644
--- a/frontend/discourse/tests/fixtures/emojis-fixtures.js
+++ b/frontend/discourse/tests/fixtures/emojis-fixtures.js
@@ -1,6 +1,6 @@
import { IMAGE_VERSION as v } from "pretty-text/emoji/version";
-export default {
+const emojisFixtures = {
"/emojis.json": {
favorites: [
{
@@ -50,6 +50,8 @@ export default {
group: "objects",
search_aliases: [],
},
- ]
- }
-}
+ ],
+ },
+};
+
+export default emojisFixtures;
diff --git a/frontend/discourse/tests/fixtures/group-fixtures.js b/frontend/discourse/tests/fixtures/group-fixtures.js
index 7802aa63cea..5fb438289c6 100644
--- a/frontend/discourse/tests/fixtures/group-fixtures.js
+++ b/frontend/discourse/tests/fixtures/group-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const groupFixtures = {
"/groups/moderators.json": {
group: {
id: 50,
@@ -1331,3 +1331,5 @@ export default {
},
},
};
+
+export default groupFixtures;
diff --git a/frontend/discourse/tests/fixtures/groups-fixtures.js b/frontend/discourse/tests/fixtures/groups-fixtures.js
index bdeb05186d4..8c6139b5969 100644
--- a/frontend/discourse/tests/fixtures/groups-fixtures.js
+++ b/frontend/discourse/tests/fixtures/groups-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const groupsFixtures = {
"/groups.json": {
groups: [
{
@@ -78,3 +78,5 @@ export default {
load_more_groups: "/groups?page=1",
},
};
+
+export default groupsFixtures;
diff --git a/frontend/discourse/tests/fixtures/notification-fixtures.js b/frontend/discourse/tests/fixtures/notification-fixtures.js
index e8f50ff6d3f..e1f9acc668f 100644
--- a/frontend/discourse/tests/fixtures/notification-fixtures.js
+++ b/frontend/discourse/tests/fixtures/notification-fixtures.js
@@ -1,6 +1,6 @@
import { NOTIFICATION_TYPES } from "./concerns/notification-types";
-export default {
+const notificationFixtures = {
"/notifications": {
notifications: [
{
@@ -77,3 +77,5 @@ export default {
],
},
};
+
+export default notificationFixtures;
diff --git a/frontend/discourse/tests/fixtures/pending-posts.js b/frontend/discourse/tests/fixtures/pending-posts.js
index e5355fc318c..c8637912ed8 100644
--- a/frontend/discourse/tests/fixtures/pending-posts.js
+++ b/frontend/discourse/tests/fixtures/pending-posts.js
@@ -1,4 +1,4 @@
-export default {
+const pendingPostsFixtures = {
"/posts/eviltrout/pending.json": {
pending_posts: [
{
@@ -30,3 +30,5 @@ export default {
],
},
};
+
+export default pendingPostsFixtures;
diff --git a/frontend/discourse/tests/fixtures/poll.js b/frontend/discourse/tests/fixtures/poll.js
index 6bb46fdca49..c9e8a0357d8 100644
--- a/frontend/discourse/tests/fixtures/poll.js
+++ b/frontend/discourse/tests/fixtures/poll.js
@@ -1,4 +1,4 @@
-export default {
+const pollFixtures = {
"/t/13.json": {
post_stream: {
posts: [
@@ -939,3 +939,5 @@ export default {
},
},
};
+
+export default pollFixtures;
diff --git a/frontend/discourse/tests/fixtures/post.js b/frontend/discourse/tests/fixtures/post.js
index 9a75e4288a0..eb84f679468 100644
--- a/frontend/discourse/tests/fixtures/post.js
+++ b/frontend/discourse/tests/fixtures/post.js
@@ -1,4 +1,4 @@
-export default {
+const postFixtures = {
"/posts/98737532": {
id: 98737532,
name: null,
@@ -217,3 +217,5 @@ export default {
wiki: false,
},
};
+
+export default postFixtures;
diff --git a/frontend/discourse/tests/fixtures/private-messages-fixtures.js b/frontend/discourse/tests/fixtures/private-messages-fixtures.js
index 33c6bcc65ba..5e75252e2bc 100644
--- a/frontend/discourse/tests/fixtures/private-messages-fixtures.js
+++ b/frontend/discourse/tests/fixtures/private-messages-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const privateMessagesFixtures = {
"/topics/private-messages/eviltrout.json": {
users: [
{
@@ -76,3 +76,5 @@ export default {
},
},
};
+
+export default privateMessagesFixtures;
diff --git a/frontend/discourse/tests/fixtures/problems.js b/frontend/discourse/tests/fixtures/problems.js
index a57c7c52d6a..a7da0318a02 100644
--- a/frontend/discourse/tests/fixtures/problems.js
+++ b/frontend/discourse/tests/fixtures/problems.js
@@ -1,5 +1,7 @@
-export default {
+const problemsFixtures = {
"/admin/dashboard/problems.json": {
problems: [{ message: "Houston...", priority: "low" }],
},
};
+
+export default problemsFixtures;
diff --git a/frontend/discourse/tests/fixtures/reports-bulk.js b/frontend/discourse/tests/fixtures/reports-bulk.js
index ff6f48c8eb4..f87dd9e509c 100644
--- a/frontend/discourse/tests/fixtures/reports-bulk.js
+++ b/frontend/discourse/tests/fixtures/reports-bulk.js
@@ -159,7 +159,7 @@ staff_logins.type = "staff_logins";
staff_logins.modes = ["table"];
staff_logins.report_key = `reports:staff_logins:start:end:[:prev_period]:50:${SCHEMA_VERSION}`;
-export default {
+const reportsBulkFixtures = {
"/admin/reports/bulk": {
reports: [
signups,
@@ -172,3 +172,5 @@ export default {
],
},
};
+
+export default reportsBulkFixtures;
diff --git a/frontend/discourse/tests/fixtures/reports.js b/frontend/discourse/tests/fixtures/reports.js
index 252e61df6d5..5f1220bd482 100644
--- a/frontend/discourse/tests/fixtures/reports.js
+++ b/frontend/discourse/tests/fixtures/reports.js
@@ -1,4 +1,4 @@
-export default {
+const reportsFixtures = {
"/admin/reports": {
reports: [
{
@@ -9,3 +9,5 @@ export default {
],
},
};
+
+export default reportsFixtures;
diff --git a/frontend/discourse/tests/fixtures/search-fixtures.js b/frontend/discourse/tests/fixtures/search-fixtures.js
index c9e9a59a286..7544d34079f 100644
--- a/frontend/discourse/tests/fixtures/search-fixtures.js
+++ b/frontend/discourse/tests/fixtures/search-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const searchFixtures = {
"/search.json": {
posts: [
{
@@ -844,3 +844,5 @@ export default {
},
},
};
+
+export default searchFixtures;
diff --git a/frontend/discourse/tests/fixtures/session-fixtures.js b/frontend/discourse/tests/fixtures/session-fixtures.js
index d5f2e221623..b4fe23ae0c9 100644
--- a/frontend/discourse/tests/fixtures/session-fixtures.js
+++ b/frontend/discourse/tests/fixtures/session-fixtures.js
@@ -1,7 +1,7 @@
import { AUTO_GROUPS } from "discourse/lib/constants";
import { deepFreeze } from "discourse/lib/object";
-export default {
+const sessionFixtures = {
"/session/current.json": deepFreeze({
current_user: {
id: 19,
@@ -145,3 +145,5 @@ export default {
},
}),
};
+
+export default sessionFixtures;
diff --git a/frontend/discourse/tests/fixtures/site-fixtures.js b/frontend/discourse/tests/fixtures/site-fixtures.js
index 30561138e4e..32a8765ec37 100644
--- a/frontend/discourse/tests/fixtures/site-fixtures.js
+++ b/frontend/discourse/tests/fixtures/site-fixtures.js
@@ -1,6 +1,6 @@
import { NOTIFICATION_TYPES } from "./concerns/notification-types";
-export default {
+const siteFixtures = {
"site.json": {
site: {
default_archetype: "regular",
@@ -848,3 +848,5 @@ export default {
},
},
};
+
+export default siteFixtures;
diff --git a/frontend/discourse/tests/fixtures/site-settings.js b/frontend/discourse/tests/fixtures/site-settings.js
index feff0ae07c5..8616e276f22 100644
--- a/frontend/discourse/tests/fixtures/site-settings.js
+++ b/frontend/discourse/tests/fixtures/site-settings.js
@@ -1,4 +1,4 @@
-export default {
+const siteSettingsFixtures = {
"/admin/site_settings": {
site_settings: [
{
@@ -82,3 +82,5 @@ export default {
],
},
};
+
+export default siteSettingsFixtures;
diff --git a/frontend/discourse/tests/fixtures/static-fixtures.js b/frontend/discourse/tests/fixtures/static-fixtures.js
index 64870151243..640dd051675 100644
--- a/frontend/discourse/tests/fixtures/static-fixtures.js
+++ b/frontend/discourse/tests/fixtures/static-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const staticFixtures = {
"faq.html":
'\u003Cul class="nav-pills"\u003E\n \u003Cli\u003E\u003Ca class="active" href="/faq"\u003EFAQ\u003C/a\u003E\u003C/li\u003E\n \u003Cli\u003E\u003Ca href="/tos"\u003ETerms of Service\u003C/a\u003E\u003C/li\u003E\n \u003Cli\u003E\u003Ca href="/privacy"\u003EPrivacy\u003C/a\u003E\u003C/li\u003E\n\u003C/ul\u003E\n\n\n\n\u003Cdiv id="civilized"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#civilized"\u003EThis is a Civilized Place for Public Discussion\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Please treat this discussion forum with the same respect you would a public park. We, too, are a shared community resource \u0026mdash; a place to share skills, knowledge and interests through ongoing conversation.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n These are not hard and fast rules, merely aids to the human judgment of our community. Use these guidelines to keep this a clean, well-lighted place for civilized public discourse.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="improve"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#improve"\u003EImprove the Discussion\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Help us make this a great place for discussion by always working to improve the discussion in some way, however small. If you are not sure your post adds to the discussion or might detract from its usefulness, think over what you want to say and try again later.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n The topics discussed here matter to us, and we want you to act as if they matter to you, too. Be respectful of the topics and the people discussing them, even if you disagree with some of what is being said.\n \u003C/p\u003E\n \u003Cp\u003E\n One way to improve the discussion is by discovering ones that are already happening. Please spend some time browsing the topics here before replying or starting your own, and you’ll have a better chance of meeting others who share your interests.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="agreeable"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#agreeable"\u003EBe Agreeable, Even When You Disagree\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n You may wish to respond to something by disagreeing with it. That’s fine. But, remember to \u003Cem\u003Ecriticize ideas, not people\u003C/em\u003E.\n Please avoid:\n \u003Cul\u003E\n \u003Cli\u003EName-calling.\u003C/li\u003E\n \u003Cli\u003EAd hominem attacks.\u003C/li\u003E\n \u003Cli\u003EResponding to a post’s tone instead of its actual content.\u003C/li\u003E\n \u003Cli\u003EKnee-jerk contradiction.\u003C/li\u003E\n \u003C/ul\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n Instead, provide reasoned counter-arguments that improve the conversation.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="participate"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#participate"\u003EYour Participation Counts\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n The conversations we have here set the tone for everyone. Help us influence the future of this community by choosing to engage in discussions that make this forum an interesting place to be \u0026mdash; and avoiding those that do not.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n Discourse provides tools that enable the community to collectively identify the best (and worst) contributions: favorites, bookmarks, likes, flags, replies, edits, and so forth. Use these tools to improve your own experience, and everyone else’s, too.\n \u003C/p\u003E\n \u003Cp\u003E\n Let’s try to leave our park better than we found it.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="flag-problems"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#flag-problems"\u003EIf You See a Problem, Flag It\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Moderators have special authority; they are responsible for this forum. But so are you. With your help, moderators can be community facilitators, not just janitors or police.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n When you see bad behavior, don’t reply. It encourages the bad behavior by acknowledging it, consumes your energy, and wastes everyone’s time. \u003Ci\u003EJust flag it\u003C/i\u003E. If enough flags accrue, action will be taken, either automatically or by moderator intervention.\n \u003C/p\u003E\n \u003Cp\u003E\n In order to maintain our community, moderators reserve the right to remove any content and any user account for any reason at any time. Moderators do not preview new posts in any way; the moderators and site operators take no responsibility for any content posted by the community.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="be-civil"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#be-civil"\u003EAlways Be Civil\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Nothing sabotages a healthy conversation like rudeness:\n \u003Cul\u003E\n \u003Cli\u003EBe civil. Don’t post anything that a reasonable person would consider offensive, abusive, or hate speech.\u003C/li\u003E\n \u003Cli\u003EKeep it clean. Don’t post anything obscene or sexually explicit.\u003C/li\u003E\n \u003Cli\u003ERespect each other. Don’t harass or grief anyone,\n impersonate people, or expose their private information.\u003C/li\u003E\n \u003Cli\u003ERespect our forum. Don’t post spam or otherwise vandalize the forum.\u003C/li\u003E\n \u003C/ul\u003E\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n These are not concrete terms with precise definitions \u0026mdash; avoid\n even the \u003Ci\u003Eappearance\u003C/i\u003E of any of these things. If you’re unsure, ask yourself how you would feel if your post was featured on the front page of the New York Times.\n \u003C/p\u003E\n \u003Cp\u003E\n This is a public forum, and search engines index these discussions. Keep the language, links, and images safe for family and friends.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="keep-tidy"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#keep-tidy"\u003EKeep It Tidy\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Make the effort to put things in the right place, so that we can spend more time discussing and less cleaning up. So:\n \u003Cul\u003E\n \u003Cli\u003EDon’t start a topic in the wrong category.\u003C/li\u003E\n \u003Cli\u003EDon’t cross-post the same thing in multiple topics.\u003C/li\u003E\n \u003Cli\u003EDon’t post no-content replies.\u003C/li\u003E\n \u003Cli\u003EDon’t divert a topic by changing it midstream.\u003C/li\u003E\n \u003Cli\u003EDon’t sign your posts \u0026mdash; every post has your profile information attached to it.\u003C/li\u003E\n \u003C/ul\u003E\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n Rather than posting “+1” or “Agreed”, use the Like button. Rather than taking an existing topic in a radically different direction, use Reply as a New Topic.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="stealing"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#stealing"\u003EPost Only Your Own Stuff\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n You may not post anything digital that belongs to someone else without permission. You may not post descriptions of, links to, or methods for stealing someone’s intellectual property (software, video, audio, images), or for breaking any other law.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="tos"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#tos"\u003ETerms of Service\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Yes, legalese is boring, but we must protect ourselves \u0026ndash; and by extension, you and your data \u0026ndash; against unfriendly folks. We have a \u003Ca href="/tos"\u003ETerms of Service\u003C/a\u003E describing your (and our) behavior and rights related to content, privacy, and laws. To use this service, you must agree to abide by our \u003Ca href="/tos"\u003ETOS\u003C/a\u003E.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n\u003C/div\u003E\n\n',
"conduct.html":
@@ -12,3 +12,5 @@ export default {
"rules.html":
'\u003Cul class="nav-pills"\u003E\n \u003Cli\u003E\u003Ca class="active" href="/faq"\u003EFAQ\u003C/a\u003E\u003C/li\u003E\n \u003Cli\u003E\u003Ca href="/tos"\u003ETerms of Service\u003C/a\u003E\u003C/li\u003E\n \u003Cli\u003E\u003Ca href="/privacy"\u003EPrivacy\u003C/a\u003E\u003C/li\u003E\n\u003C/ul\u003E\n\n\n\n\u003Cdiv id="civilized"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#civilized"\u003EThis is a Civilized Place for Public Discussion\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Please treat this discussion forum with the same respect you would a public park. We, too, are a shared community resource \u0026mdash; a place to share skills, knowledge and interests through ongoing conversation.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n These are not hard and fast rules, merely aids to the human judgment of our community. Use these guidelines to keep this a clean, well-lighted place for civilized public discourse.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="improve"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#improve"\u003EImprove the Discussion\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Help us make this a great place for discussion by always working to improve the discussion in some way, however small. If you are not sure your post adds to the discussion or might detract from its usefulness, think over what you want to say and try again later.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n The topics discussed here matter to us, and we want you to act as if they matter to you, too. Be respectful of the topics and the people discussing them, even if you disagree with some of what is being said.\n \u003C/p\u003E\n \u003Cp\u003E\n One way to improve the discussion is by discovering ones that are already happening. Please spend some time browsing the topics here before replying or starting your own, and you’ll have a better chance of meeting others who share your interests.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="agreeable"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#agreeable"\u003EBe Agreeable, Even When You Disagree\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n You may wish to respond to something by disagreeing with it. That’s fine. But, remember to \u003Cem\u003Ecriticize ideas, not people\u003C/em\u003E.\n Please avoid:\n \u003Cul\u003E\n \u003Cli\u003EName-calling.\u003C/li\u003E\n \u003Cli\u003EAd hominem attacks.\u003C/li\u003E\n \u003Cli\u003EResponding to a post’s tone instead of its actual content.\u003C/li\u003E\n \u003Cli\u003EKnee-jerk contradiction.\u003C/li\u003E\n \u003C/ul\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n Instead, provide reasoned counter-arguments that improve the conversation.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="participate"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#participate"\u003EYour Participation Counts\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n The conversations we have here set the tone for everyone. Help us influence the future of this community by choosing to engage in discussions that make this forum an interesting place to be \u0026mdash; and avoiding those that do not.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n Discourse provides tools that enable the community to collectively identify the best (and worst) contributions: favorites, bookmarks, likes, flags, replies, edits, and so forth. Use these tools to improve your own experience, and everyone else’s, too.\n \u003C/p\u003E\n \u003Cp\u003E\n Let’s try to leave our park better than we found it.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="flag-problems"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#flag-problems"\u003EIf You See a Problem, Flag It\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Moderators have special authority; they are responsible for this forum. But so are you. With your help, moderators can be community facilitators, not just janitors or police.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n When you see bad behavior, don’t reply. It encourages the bad behavior by acknowledging it, consumes your energy, and wastes everyone’s time. \u003Ci\u003EJust flag it\u003C/i\u003E. If enough flags accrue, action will be taken, either automatically or by moderator intervention.\n \u003C/p\u003E\n \u003Cp\u003E\n In order to maintain our community, moderators reserve the right to remove any content and any user account for any reason at any time. Moderators do not preview new posts in any way; the moderators and site operators take no responsibility for any content posted by the community.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="be-civil"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#be-civil"\u003EAlways Be Civil\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Nothing sabotages a healthy conversation like rudeness:\n \u003Cul\u003E\n \u003Cli\u003EBe civil. Don’t post anything that a reasonable person would consider offensive, abusive, or hate speech.\u003C/li\u003E\n \u003Cli\u003EKeep it clean. Don’t post anything obscene or sexually explicit.\u003C/li\u003E\n \u003Cli\u003ERespect each other. Don’t harass or grief anyone,\n impersonate people, or expose their private information.\u003C/li\u003E\n \u003Cli\u003ERespect our forum. Don’t post spam or otherwise vandalize the forum.\u003C/li\u003E\n \u003C/ul\u003E\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n These are not concrete terms with precise definitions \u0026mdash; avoid\n even the \u003Ci\u003Eappearance\u003C/i\u003E of any of these things. If you’re unsure, ask yourself how you would feel if your post was featured on the front page of the New York Times.\n \u003C/p\u003E\n \u003Cp\u003E\n This is a public forum, and search engines index these discussions. Keep the language, links, and images safe for family and friends.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="keep-tidy"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#keep-tidy"\u003EKeep It Tidy\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Make the effort to put things in the right place, so that we can spend more time discussing and less cleaning up. So:\n \u003Cul\u003E\n \u003Cli\u003EDon’t start a topic in the wrong category.\u003C/li\u003E\n \u003Cli\u003EDon’t cross-post the same thing in multiple topics.\u003C/li\u003E\n \u003Cli\u003EDon’t post no-content replies.\u003C/li\u003E\n \u003Cli\u003EDon’t divert a topic by changing it midstream.\u003C/li\u003E\n \u003Cli\u003EDon’t sign your posts \u0026mdash; every post has your profile information attached to it.\u003C/li\u003E\n \u003C/ul\u003E\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n \u003Cp\u003E\n Rather than posting “+1” or “Agreed”, use the Like button. Rather than taking an existing topic in a radically different direction, use Reply as a New Topic.\n \u003C/p\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="stealing"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#stealing"\u003EPost Only Your Own Stuff\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n You may not post anything digital that belongs to someone else without permission. You may not post descriptions of, links to, or methods for stealing someone’s intellectual property (software, video, audio, images), or for breaking any other law.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n\u003C/div\u003E\n\n\u003Cdiv id="tos"\u003E\u003C/div\u003E\n\u003Ch2\u003E\u003Ca href="#tos"\u003ETerms of Service\u003C/a\u003E\u003C/h2\u003E\n\u003Cp\u003E\n Yes, legalese is boring, but we must protect ourselves \u0026ndash; and by extension, you and your data \u0026ndash; against unfriendly folks. We have a \u003Ca href="/tos"\u003ETerms of Service\u003C/a\u003E describing your (and our) behavior and rights related to content, privacy, and laws. To use this service, you must agree to abide by our \u003Ca href="/tos"\u003ETOS\u003C/a\u003E.\n\u003C/p\u003E\n\u003Cdiv class="more"\u003E\n\u003C/div\u003E\n\n',
};
+
+export default staticFixtures;
diff --git a/frontend/discourse/tests/fixtures/tag-group-fixtures.js b/frontend/discourse/tests/fixtures/tag-group-fixtures.js
index 449665489fe..f8d63cf7e08 100644
--- a/frontend/discourse/tests/fixtures/tag-group-fixtures.js
+++ b/frontend/discourse/tests/fixtures/tag-group-fixtures.js
@@ -1,5 +1,7 @@
-export default {
+const tagGroupFixtures = {
"/tag_groups/filter/search": {
results: [{ name: "TagGroup1" }, { name: "TagGroup2" }],
},
};
+
+export default tagGroupFixtures;
diff --git a/frontend/discourse/tests/fixtures/top-fixtures.js b/frontend/discourse/tests/fixtures/top-fixtures.js
index 6d4c0194da2..965ad7040bb 100644
--- a/frontend/discourse/tests/fixtures/top-fixtures.js
+++ b/frontend/discourse/tests/fixtures/top-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const topFixtures = {
"/top.json": {
users: [
{
@@ -2487,3 +2487,5 @@ export default {
},
},
};
+
+export default topFixtures;
diff --git a/frontend/discourse/tests/fixtures/topic.js b/frontend/discourse/tests/fixtures/topic.js
index 1e4ffbc55ca..c9088b52e83 100644
--- a/frontend/discourse/tests/fixtures/topic.js
+++ b/frontend/discourse/tests/fixtures/topic.js
@@ -1,4 +1,4 @@
-export default {
+const topicFixtures = {
"/t/130.json": {
post_stream: {
posts: [
@@ -7088,3 +7088,5 @@ export default {
tags: null,
},
};
+
+export default topicFixtures;
diff --git a/frontend/discourse/tests/fixtures/user-badges.js b/frontend/discourse/tests/fixtures/user-badges.js
index 502547b9f2a..d93aefd20bb 100644
--- a/frontend/discourse/tests/fixtures/user-badges.js
+++ b/frontend/discourse/tests/fixtures/user-badges.js
@@ -1,4 +1,4 @@
-export default {
+const userBadgesFixtures = {
"/user_badges": {
badges: [
{
@@ -68,3 +68,5 @@ export default {
],
},
};
+
+export default userBadgesFixtures;
diff --git a/frontend/discourse/tests/fixtures/user-fixtures.js b/frontend/discourse/tests/fixtures/user-fixtures.js
index 6b5c22ae055..23bf057be49 100644
--- a/frontend/discourse/tests/fixtures/user-fixtures.js
+++ b/frontend/discourse/tests/fixtures/user-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const userFixtures = {
"/u/eviltrout.json": {
user_badges: [
{
@@ -3591,3 +3591,5 @@ export default {
recent_searches: ["yellow", "blue"],
},
};
+
+export default userFixtures;
diff --git a/frontend/discourse/tests/fixtures/user-menu.js b/frontend/discourse/tests/fixtures/user-menu.js
index d5f0f97544c..36f823e9325 100644
--- a/frontend/discourse/tests/fixtures/user-menu.js
+++ b/frontend/discourse/tests/fixtures/user-menu.js
@@ -1,4 +1,4 @@
-export default {
+const userMenuFixtures = {
"/u/:username/user-menu-bookmarks": {
notifications: [
{
@@ -148,3 +148,5 @@ export default {
}]
}
};
+
+export default userMenuFixtures;
diff --git a/frontend/discourse/tests/fixtures/watched-words-fixtures.js b/frontend/discourse/tests/fixtures/watched-words-fixtures.js
index 36083fe1689..e07a9ebdcf4 100644
--- a/frontend/discourse/tests/fixtures/watched-words-fixtures.js
+++ b/frontend/discourse/tests/fixtures/watched-words-fixtures.js
@@ -1,4 +1,4 @@
-export default {
+const watchedWordsFixtures = {
"/admin/customize/watched_words.json": {
actions: ["block", "censor", "require_approval", "flag", "replace", "tag"],
words: [
@@ -39,3 +39,5 @@ export default {
},
},
};
+
+export default watchedWordsFixtures;