Skip to content

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

DEV: Fix Prettier

Penar Musaraj1de5d10f614f
diff --git a/test/javascripts/lib/search-test.js.es6 b/test/javascripts/lib/search-test.js.es6
index 1cd16cc0ae4..30918007dbb 100644
--- a/test/javascripts/lib/search-test.js.es6
+++ b/test/javascripts/lib/search-test.js.es6
@@ -3,33 +3,31 @@ import { translateResults } from "discourse/lib/search";
QUnit.module("lib:search");
QUnit.test("unescapesEmojisInBlurbs", assert => {
- const source = {
- posts: [
- {
- id: 160,
- username: "pmusaraj",
- avatar_template:
- "/user_avatar/localhost/pmusaraj/{size}/3_2.png",
- created_at: "2019-07-22T03:47:04.864Z",
- like_count: 1,
- blurb:
- ":thinking: This here is a test of emojis in search blurbs.",
- post_number: 1,
- topic_id: 41
- }
- ],
- topics: [],
- users: [],
- categories: [],
- tags: [],
- groups: [],
- grouped_search_result: false
- };
+ const source = {
+ posts: [
+ {
+ id: 160,
+ username: "pmusaraj",
+ avatar_template: "/user_avatar/localhost/pmusaraj/{size}/3_2.png",
+ created_at: "2019-07-22T03:47:04.864Z",
+ like_count: 1,
+ blurb: ":thinking: This here is a test of emojis in search blurbs.",
+ post_number: 1,
+ topic_id: 41
+ }
+ ],
+ topics: [],
+ users: [],
+ categories: [],
+ tags: [],
+ groups: [],
+ grouped_search_result: false
+ };
- const results = translateResults(source);
- const blurb = results.posts[0].get("blurb");
+ const results = translateResults(source);
+ const blurb = results.posts[0].get("blurb");
- assert.ok(blurb.indexOf("thinking.png"));
- assert.ok(blurb.indexOf("<img src") === 0);
- assert.ok(blurb.indexOf(":thinking:") === -1);
+ assert.ok(blurb.indexOf("thinking.png"));
+ assert.ok(blurb.indexOf("<img src") === 0);
+ assert.ok(blurb.indexOf(":thinking:") === -1);
});