FIX: Overwriting more computed properties

This commit is contained in:
Robin Ward
2020-07-16 13:22:13 -04:00
parent 01cd371be5
commit 766cb24989
2 changed files with 10 additions and 8 deletions
+4 -2
View File
@@ -20,7 +20,8 @@ function postStreamTest(name, attrs) {
postStreamTest("basics", {
posts() {
const site = this.container.lookup("site:main");
const topic = Topic.create({ details: { created_by: { id: 123 } } });
const topic = Topic.create();
topic.set("details.created_by", { id: 123 });
return [
Post.create({
topic,
@@ -118,7 +119,8 @@ postStreamTest("basics", {
postStreamTest("deleted posts", {
posts() {
const topic = Topic.create({ details: { created_by: { id: 123 } } });
const topic = Topic.create();
topic.set("details.created_by", { id: 123 });
return [
Post.create({
topic,