Skip to content

Commit

Permalink
Update property name
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaley committed Oct 26, 2023
1 parent 14f9113 commit a605491
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/app/components/project/tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface ProjectTileComponentSignature {

export default class ProjectTileComponent extends Component<ProjectTileComponentSignature> {
protected get documents() {
return this.args.project.documents;
return this.args.project.hermesDocuments;
}

protected get jiraObject() {
Expand Down
4 changes: 2 additions & 2 deletions web/tests/acceptance/authenticated/projects-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions web/tests/integration/components/project/tile-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ module("Integration | Component | project/tile", function (hooks) {
<Project::Tile @project={{this.project}} />
`);

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();

Expand Down

0 comments on commit a605491

Please sign in to comment.