mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:01:10 +08:00
apply prettier on gigantic find and replace (#7604)
This commit is contained in:
@ -25,25 +25,19 @@ componentTest("subcatgories - no selection", {
|
||||
|
||||
async test(assert) {
|
||||
assert.equal(
|
||||
this.subject
|
||||
.header()
|
||||
.title(),
|
||||
this.subject.header().title(),
|
||||
I18n.t("categories.all_subcategories")
|
||||
);
|
||||
|
||||
await this.subject.expand();
|
||||
|
||||
assert.equal(
|
||||
this.subject
|
||||
.rowByIndex(0)
|
||||
.name(),
|
||||
this.subject.rowByIndex(0).name(),
|
||||
I18n.t("categories.no_subcategory")
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
this.subject
|
||||
.rowByIndex(1)
|
||||
.name(),
|
||||
this.subject.rowByIndex(1).name(),
|
||||
this.get("childCategories.firstObject.name")
|
||||
);
|
||||
}
|
||||
@ -67,25 +61,19 @@ componentTest("subcatgories - selection", {
|
||||
|
||||
async test(assert) {
|
||||
assert.equal(
|
||||
this.subject
|
||||
.header()
|
||||
.title(),
|
||||
this.subject.header().title(),
|
||||
this.get("childCategories.firstObject.name")
|
||||
);
|
||||
|
||||
await this.subject.expand();
|
||||
|
||||
assert.equal(
|
||||
this.subject
|
||||
.rowByIndex(0)
|
||||
.name(),
|
||||
this.subject.rowByIndex(0).name(),
|
||||
I18n.t("categories.all_subcategories")
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
this.subject
|
||||
.rowByIndex(1)
|
||||
.name(),
|
||||
this.subject.rowByIndex(1).name(),
|
||||
I18n.t("categories.no_subcategory")
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user