Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozzey committed Jan 24, 2025
1 parent bb9e388 commit 781f02c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/return-logs/setup/check.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
{% for action in note.actions %}
<li class="govuk-summary-list__actions-list-item">
<a class="govuk-link" href="{{ action.href }}" data-test="{{ action.href }}">
{{ action.text }} <span class="govuk-visually-hidden"> the note</span>
{{ action.text }} <span class="govuk-visually-hidden">the note</span>
</a>
</li>
{% endfor %}
</ul>
</span>
</span>
</div>
<hr class="govuk-section-break--visible">
</div>
Expand Down
9 changes: 9 additions & 0 deletions test/services/return-logs/setup/check.service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ describe('Return Logs Setup - Check service', () => {

expect(result).to.equal({
activeNavBar: 'search',
note: {
actions: [
{
href: 'note',
text: 'Add a note'
}
],
text: 'No notes added'
},
pageTitle: 'Check details and enter new volumes or readings',
returnReference: '1234',
sessionId
Expand Down

0 comments on commit 781f02c

Please sign in to comment.