mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 04:38:47 +08:00
Fix Prettier using correct version (1.19.1)
This commit is contained in:
@ -126,5 +126,8 @@ QUnit.test("Group Requests", async assert => {
|
||||
.trim(),
|
||||
"denied"
|
||||
);
|
||||
assert.deepEqual(requests, [["19", "true"], ["20", undefined]]);
|
||||
assert.deepEqual(requests, [
|
||||
["19", "true"],
|
||||
["20", undefined]
|
||||
]);
|
||||
});
|
||||
|
@ -11,7 +11,10 @@ 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) {
|
||||
@ -43,7 +46,10 @@ 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,7 +14,10 @@ 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,7 +33,10 @@ 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) {
|
||||
@ -148,7 +151,10 @@ 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) {
|
||||
@ -246,7 +252,10 @@ 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,
|
||||
|
@ -324,7 +324,10 @@ 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]
|
||||
};
|
||||
|
||||
|
@ -141,7 +141,11 @@ 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);
|
||||
|
Reference in New Issue
Block a user