A platform for community discussion. Free, open, simple.
Fix Prettier
Penar Musaraj655e610357d1
diff --git a/test/javascripts/acceptance/group-requests-test.js.es6 b/test/javascripts/acceptance/group-requests-test.js.es6index 3e9c189dc70..132ba3f0f2a 100644--- a/test/javascripts/acceptance/group-requests-test.js.es6+++ b/test/javascripts/acceptance/group-requests-test.js.es6@@ -126,8 +126,5 @@ QUnit.test("Group Requests", async assert => {.trim(),"denied");- assert.deepEqual(requests, [- ["19", "true"],- ["20", undefined]- ]);+ assert.deepEqual(requests, [["19", "true"], ["20", undefined]]);});diff --git a/test/javascripts/components/combo-box-test.js.es6 b/test/javascripts/components/combo-box-test.js.es6index f943e2b05db..94987dbb910 100644--- a/test/javascripts/components/combo-box-test.js.es6+++ b/test/javascripts/components/combo-box-test.js.es6@@ -11,10 +11,7 @@ moduleForComponent("combo-box", {componentTest("default", {template: "{{combo-box content=items}}",beforeEach() {- this.set("items", [- { id: 1, name: "hello" },- { id: 2, name: "world" }- ]);+ this.set("items", [{ id: 1, name: "hello" }, { id: 2, name: "world" }]);},async test(assert) {@@ -46,10 +43,7 @@ componentTest("with valueAttribute", {componentTest("with nameProperty", {template: '{{combo-box content=items nameProperty="text"}}',beforeEach() {- this.set("items", [- { id: 0, text: "hello" },- { id: 1, text: "world" }- ]);+ this.set("items", [{ id: 0, text: "hello" }, { id: 1, text: "world" }]);},async test(assert) {diff --git a/test/javascripts/components/multi-select-test.js.es6 b/test/javascripts/components/multi-select-test.js.es6index a012e78ce36..62c1c09e5e7 100644--- a/test/javascripts/components/multi-select-test.js.es6+++ b/test/javascripts/components/multi-select-test.js.es6@@ -14,10 +14,7 @@ componentTest("with objects and values", {template: "{{multi-select content=items values=values}}",beforeEach() {- this.set("items", [- { id: 1, name: "hello" },- { id: 2, name: "world" }- ]);+ this.set("items", [{ id: 1, name: "hello" }, { id: 2, name: "world" }]);this.set("values", [1, 2]);},diff --git a/test/javascripts/components/single-select-test.js.es6 b/test/javascripts/components/single-select-test.js.es6index 24a472621f8..22fab0a4f9e 100644--- a/test/javascripts/components/single-select-test.js.es6+++ b/test/javascripts/components/single-select-test.js.es6@@ -33,10 +33,7 @@ componentTest("accepts a value by reference", {beforeEach() {this.set("value", 1);- this.set("content", [- { id: 1, name: "robin" },- { id: 2, name: "regis" }- ]);+ this.set("content", [{ id: 1, name: "robin" }, { id: 2, name: "regis" }]);},async test(assert) {@@ -151,10 +148,7 @@ componentTest("dynamic headerText", {template: "{{single-select value=1 content=content}}",beforeEach() {- this.set("content", [- { id: 1, name: "robin" },- { id: 2, name: "regis" }- ]);+ this.set("content", [{ id: 1, name: "robin" }, { id: 2, name: "regis" }]);},async test(assert) {@@ -252,10 +246,7 @@ componentTest("supports keyboard events", {template: "{{single-select content=content filterable=true}}",beforeEach() {- this.set("content", [- { id: 1, name: "robin" },- { id: 2, name: "regis" }- ]);+ this.set("content", [{ id: 1, name: "robin" }, { id: 2, name: "regis" }]);},skip: true,diff --git a/test/javascripts/controllers/topic-test.js.es6 b/test/javascripts/controllers/topic-test.js.es6index 4ae05626666..e48105a67c3 100644--- a/test/javascripts/controllers/topic-test.js.es6+++ b/test/javascripts/controllers/topic-test.js.es6@@ -324,10 +324,7 @@ QUnit.test("canChangeOwner", function(assert) {this.registry.injection("controller", "currentUser", "current-user:main");const postStream = {- posts: [- { id: 1, username: "gary" },- { id: 2, username: "lili" }- ],+ posts: [{ id: 1, username: "gary" }, { id: 2, username: "lili" }],stream: [1, 2]};diff --git a/test/javascripts/models/post-stream-test.js.es6 b/test/javascripts/models/post-stream-test.js.es6index 40b5f87af59..fb90fdb8b41 100644--- a/test/javascripts/models/post-stream-test.js.es6+++ b/test/javascripts/models/post-stream-test.js.es6@@ -141,11 +141,7 @@ QUnit.test("closestPostNumberFor", assert => {QUnit.test("closestDaysAgoFor", assert => {const postStream = buildStream(1231);- postStream.set("timelineLookup", [- [1, 10],- [3, 8],- [5, 1]- ]);+ postStream.set("timelineLookup", [[1, 10], [3, 8], [5, 1]]);assert.equal(postStream.closestDaysAgoFor(1), 10);assert.equal(postStream.closestDaysAgoFor(2), 10);