From a60549129004c36d24f24cebf9805ca3ea3badf5 Mon Sep 17 00:00:00 2001 From: Jeff Daley Date: Wed, 25 Oct 2023 21:30:44 -0400 Subject: [PATCH] Update property name --- web/app/components/project/tile.ts | 2 +- web/tests/acceptance/authenticated/projects-test.ts | 4 ++-- web/tests/integration/components/project/tile-test.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/app/components/project/tile.ts b/web/app/components/project/tile.ts index 369a8ade9..22cc43990 100644 --- a/web/app/components/project/tile.ts +++ b/web/app/components/project/tile.ts @@ -10,7 +10,7 @@ interface ProjectTileComponentSignature { export default class ProjectTileComponent extends Component { protected get documents() { - return this.args.project.documents; + return this.args.project.hermesDocuments; } protected get jiraObject() { diff --git a/web/tests/acceptance/authenticated/projects-test.ts b/web/tests/acceptance/authenticated/projects-test.ts index cb63bceb4..47665256f 100644 --- a/web/tests/acceptance/authenticated/projects-test.ts +++ b/web/tests/acceptance/authenticated/projects-test.ts @@ -55,8 +55,8 @@ module("Acceptance | authenticated/projects", function (hooks) { expectedJiraTypes.push(project.jiraObject.type); } } - if (project.documents) { - project.documents.forEach((doc) => { + if (project.hermesDocuments) { + project.hermesDocuments.forEach((doc) => { if (doc.product) { expectedProducts.push(doc.product); } diff --git a/web/tests/integration/components/project/tile-test.ts b/web/tests/integration/components/project/tile-test.ts index 0d5249aac..b3acb1fe5 100644 --- a/web/tests/integration/components/project/tile-test.ts +++ b/web/tests/integration/components/project/tile-test.ts @@ -46,8 +46,8 @@ module("Integration | Component | project/tile", function (hooks) { `); - const { title, description, documents, jiraObject } = this.project; - const documentProducts = documents + const { title, description, hermesDocuments, jiraObject } = this.project; + const documentProducts = hermesDocuments ?.map((doc) => doc.product as string) .uniq();