DEV: Don't overwrite computed props in tests
This commit is contained in:
parent
25524a213d
commit
20108f834c
|
@ -168,22 +168,15 @@ componentTest("filter works with non english characters", {
|
||||||
template: `
|
template: `
|
||||||
{{category-chooser
|
{{category-chooser
|
||||||
value=value
|
value=value
|
||||||
content=content
|
|
||||||
}}
|
}}
|
||||||
`,
|
`,
|
||||||
|
|
||||||
beforeEach() {
|
beforeEach() {
|
||||||
const store = createStore();
|
const store = createStore();
|
||||||
const nonEnglishCat = store.createRecord("category", {
|
store.createRecord("category", {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: "chữ Quốc ngữ",
|
name: "chữ Quốc ngữ",
|
||||||
});
|
});
|
||||||
const englishCat = store.createRecord("category", {
|
|
||||||
id: 2,
|
|
||||||
name: "Baz",
|
|
||||||
});
|
|
||||||
|
|
||||||
this.set("content", [nonEnglishCat, englishCat]);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
async test(assert) {
|
async test(assert) {
|
||||||
|
@ -199,19 +192,17 @@ componentTest("decodes entities in row title", {
|
||||||
template: `
|
template: `
|
||||||
{{category-chooser
|
{{category-chooser
|
||||||
value=value
|
value=value
|
||||||
content=content
|
options=(hash scopedCategoryId=1)
|
||||||
}}
|
}}
|
||||||
`,
|
`,
|
||||||
|
|
||||||
beforeEach() {
|
beforeEach() {
|
||||||
const store = createStore();
|
const store = createStore();
|
||||||
const catWithEntities = store.createRecord("category", {
|
store.createRecord("category", {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: "cat-with-entities",
|
name: "cat-with-entities",
|
||||||
description: "baz "bar ‘foo’",
|
description: "baz "bar ‘foo’",
|
||||||
});
|
});
|
||||||
|
|
||||||
this.set("content", [catWithEntities]);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
async test(assert) {
|
async test(assert) {
|
||||||
|
|
Loading…
Reference in New Issue