mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
Fix Prettier
This commit is contained in:
@ -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) {
|
||||
|
@ -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]);
|
||||
},
|
||||
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user