fix linting removed by prettier

This commit is contained in:
Joffrey JAFFEUX
2018-06-15 18:18:45 +02:00
committed by GitHub
parent 03a7d532cf
commit 2268e29c26
13 changed files with 56 additions and 59 deletions

View File

@ -8,8 +8,8 @@ acceptance("Forgot password", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.post("/session/forgot_password", () => { // prettier-ignore
// eslint-disable-line no-undef server.post("/session/forgot_password", () => { // eslint-disable-line no-undef
return response({ user_found: userFound }); return response({ user_found: userFound });
}); });
} }

View File

@ -7,8 +7,8 @@ acceptance("Group logs", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.get("/groups/snorlax.json", () => { // prettier-ignore
// eslint-disable-line no-undef server.get("/groups/snorlax.json", () => { // eslint-disable-line no-undef
return response({ return response({
group: { group: {
id: 41, id: 41,
@ -37,8 +37,8 @@ acceptance("Group logs", {
}); });
// Workaround while awaiting https://github.com/tildeio/route-recognizer/issues/53 // Workaround while awaiting https://github.com/tildeio/route-recognizer/issues/53
server.get("/groups/snorlax/logs.json", request => { // prettier-ignore
// eslint-disable-line no-undef server.get("/groups/snorlax/logs.json", request => { // eslint-disable-line no-undef
if (request.queryParams["filters[action]"]) { if (request.queryParams["filters[action]"]) {
return response({ return response({
logs: [ logs: [

View File

@ -91,8 +91,8 @@ QUnit.test("User Viewing Group", assert => {
visit("/groups"); visit("/groups");
click(".group-index-request"); click(".group-index-request");
server.post("/groups/Macdonald/request_membership", () => { // prettier-ignore
// eslint-disable-line no-undef server.post("/groups/Macdonald/request_membership", () => { // eslint-disable-line no-undef
return [ return [
200, 200,
{ "Content-Type": "application/json" }, { "Content-Type": "application/json" },
@ -142,13 +142,10 @@ QUnit.test("User Viewing Group", assert => {
QUnit.test( QUnit.test(
"Admin viewing group messages when there are no messages", "Admin viewing group messages when there are no messages",
assert => { assert => {
server.get( // prettier-ignore
"/topics/private-messages-group/eviltrout/discourse.json", server.get("/topics/private-messages-group/eviltrout/discourse.json", () => { // eslint-disable-line no-undef
() => { return response({ topic_list: { topics: [] } });
// eslint-disable-line no-undef });
return response({ topic_list: { topics: [] } });
}
);
logIn(); logIn();
Discourse.reset(); Discourse.reset();
@ -170,8 +167,8 @@ QUnit.test(
); );
QUnit.test("Admin viewing group messages", assert => { QUnit.test("Admin viewing group messages", assert => {
server.get("/topics/private-messages-group/eviltrout/discourse.json", () => { // prettier-ignore
// eslint-disable-line no-undef server.get("/topics/private-messages-group/eviltrout/discourse.json", () => { // eslint-disable-line no-undef
return response({ return response({
users: [ users: [
{ {

View File

@ -12,8 +12,8 @@ acceptance("Login with email", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.post("/u/email-login", () => { // prettier-ignore
// eslint-disable-line no-undef server.post("/u/email-login", () => { // eslint-disable-line no-undef
return response({ success: "OK", user_found: userFound }); return response({ success: "OK", user_found: userFound });
}); });
} }
@ -139,8 +139,8 @@ acceptance("Login with email", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.post("/u/email-login", () => { // prettier-ignore
// eslint-disable-line no-undef server.post("/u/email-login", () => { // eslint-disable-line no-undef
return response({ success: "OK" }); return response({ success: "OK" });
}); });
} }

View File

@ -8,13 +8,13 @@ acceptance("Password Reset", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.get("/u/confirm-email-token/myvalidtoken.json", () => { // prettier-ignore
//eslint-disable-line server.get("/u/confirm-email-token/myvalidtoken.json", () => { //eslint-disable-line
return response({ success: "OK" }); return response({ success: "OK" });
}); });
server.put("/u/password-reset/myvalidtoken.json", request => { // prettier-ignore
//eslint-disable-line server.put("/u/password-reset/myvalidtoken.json", request => { //eslint-disable-line
const body = parsePostData(request.requestBody); const body = parsePostData(request.requestBody);
if (body.password === "jonesyAlienSlayer") { if (body.password === "jonesyAlienSlayer") {
return response({ return response({
@ -29,13 +29,13 @@ acceptance("Password Reset", {
} }
}); });
server.get("/u/confirm-email-token/requiretwofactor.json", () => { // prettier-ignore
//eslint-disable-line server.get("/u/confirm-email-token/requiretwofactor.json", () => { //eslint-disable-line
return response({ success: "OK" }); return response({ success: "OK" });
}); });
server.put("/u/password-reset/requiretwofactor.json", request => { // prettier-ignore
//eslint-disable-line server.put("/u/password-reset/requiretwofactor.json", request => { //eslint-disable-line
const body = parsePostData(request.requestBody); const body = parsePostData(request.requestBody);
if ( if (
body.password === "perf3ctly5ecur3" && body.password === "perf3ctly5ecur3" &&

View File

@ -6,16 +6,16 @@ acceptance("User Preferences", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.post("/u/second_factors.json", () => { // prettier-ignore
//eslint-disable-line server.post("/u/second_factors.json", () => { //eslint-disable-line
return response({ return response({
key: "rcyryaqage3jexfj", key: "rcyryaqage3jexfj",
qr: '<div id="test-qr">qr-code</div>' qr: '<div id="test-qr">qr-code</div>'
}); });
}); });
server.put("/u/second_factor.json", () => { // prettier-ignore
//eslint-disable-line server.put("/u/second_factor.json", () => { //eslint-disable-line
return response({ error: "invalid token" }); return response({ error: "invalid token" });
}); });
} }

View File

@ -8,8 +8,8 @@ acceptance("Queued Posts", {
QUnit.test( QUnit.test(
"For topics: body of post, title, category and tags are all editbale", "For topics: body of post, title, category and tags are all editbale",
assert => { assert => {
server.get("/queued_posts", () => { // prettier-ignore
//eslint-disable-line no-undef server.get("/queued_posts", () => { //eslint-disable-line no-undef
return [ return [
200, 200,
{ "Content-Type": "application/json" }, { "Content-Type": "application/json" },
@ -95,8 +95,8 @@ QUnit.test(
); );
QUnit.test("For replies: only the body of post is editbale", assert => { QUnit.test("For replies: only the body of post is editbale", assert => {
server.get("/queued_posts", () => { // prettier-ignore
//eslint-disable-line no-undef server.get("/queued_posts", () => { //eslint-disable-line no-undef
return [ return [
200, 200,
{ "Content-Type": "application/json" }, { "Content-Type": "application/json" },

View File

@ -7,13 +7,13 @@ acceptance("Search - Full Page", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.get("/tags/filter/search", () => { // prettier-ignore
//eslint-disable-line server.get("/tags/filter/search", () => { //eslint-disable-line
return response({ results: [{ text: "monkey", count: 1 }] }); return response({ results: [{ text: "monkey", count: 1 }] });
}); });
server.get("/u/search/users", () => { // prettier-ignore
//eslint-disable-line server.get("/u/search/users", () => { //eslint-disable-line
return response({ return response({
users: [ users: [
{ {
@ -25,8 +25,8 @@ acceptance("Search - Full Page", {
}); });
}); });
server.get("/admin/groups.json", () => { // prettier-ignore
//eslint-disable-line server.get("/admin/groups.json", () => { //eslint-disable-line
return response([ return response([
{ {
id: 2, id: 2,
@ -52,8 +52,8 @@ acceptance("Search - Full Page", {
]); ]);
}); });
server.get("/badges.json", () => { // prettier-ignore
//eslint-disable-line server.get("/badges.json", () => { //eslint-disable-line
return response({ return response({
badge_types: [{ id: 3, name: "Bronze", sort_order: 7 }], badge_types: [{ id: 3, name: "Bronze", sort_order: 7 }],
badge_groupings: [ badge_groupings: [

View File

@ -8,18 +8,18 @@ acceptance("Tag Hashtag", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.get("/tags/filter/search", () => { // prettier-ignore
//eslint-disable-line server.get("/tags/filter/search", () => { //eslint-disable-line
return response({ results: [{ text: "monkey", count: 1 }] }); return response({ results: [{ text: "monkey", count: 1 }] });
}); });
server.get("/category_hashtags/check", () => { // prettier-ignore
//eslint-disable-line server.get("/category_hashtags/check", () => { //eslint-disable-line
return response({ valid: [] }); return response({ valid: [] });
}); });
server.get("/tags/check", () => { // prettier-ignore
//eslint-disable-line server.get("/tags/check", () => { //eslint-disable-line
return response({ valid: [{ value: "monkey", url: "/tags/monkey" }] }); return response({ valid: [{ value: "monkey", url: "/tags/monkey" }] });
}); });
} }

View File

@ -18,8 +18,8 @@ acceptance("Tags listed by group", {
}); });
QUnit.test("list the tags in groups", assert => { QUnit.test("list the tags in groups", assert => {
server.get("/tags", () => { // prettier-ignore
// eslint-disable-line no-undef server.get("/tags", () => { // eslint-disable-line no-undef
return [ return [
200, 200,
{ "Content-Type": "application/json" }, { "Content-Type": "application/json" },

View File

@ -6,8 +6,8 @@ acceptance("Topic Notifications button", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.post("/t/280/notifications", () => { // prettier-ignore
// eslint-disable-line no-undef server.post("/t/280/notifications", () => { // eslint-disable-line no-undef
return response({}); return response({});
}); });
} }

View File

@ -77,8 +77,8 @@ QUnit.test("Updating the topic title and category", assert => {
}); });
QUnit.test("Marking a topic as wiki", assert => { QUnit.test("Marking a topic as wiki", assert => {
server.put("/posts/398/wiki", () => { // prettier-ignore
// eslint-disable-line no-undef server.put("/posts/398/wiki", () => { // eslint-disable-line no-undef
return [200, { "Content-Type": "application/json" }, {}]; return [200, { "Content-Type": "application/json" }, {}];
}); });

View File

@ -6,8 +6,8 @@ QUnit.module("lib:user-search", {
return [200, { "Content-Type": "application/json" }, object]; return [200, { "Content-Type": "application/json" }, object];
}; };
server.get("/u/search/users", () => { // prettier-ignore
//eslint-disable-line server.get("/u/search/users", () => { //eslint-disable-line
return response({ return response({
users: [ users: [
{ {