Skip to content

Commit

Permalink
Update empty requirements for returns message (#1114)
Browse files Browse the repository at this point in the history
* Update empty requirements for returns message

The message shown in the licence set up page should be:
"No requirements for returns have been set up for this licence."
  • Loading branch information
jonathangoulding authored Jun 18, 2024
1 parent acb20de commit ee612c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/views/licences/tabs/set-up.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
{% endmacro %}

<h2 class="govuk-heading-l">Licence set up</h2>

<h3 class="govuk-heading-m"> Requirements for returns </h3>

{% if returnVersions.length == 0 %}
<p class="govuk-body"> No requirements for returns for this licence.</p>
<p class="govuk-body"> No requirements for returns have been set up for this licence.</p>
{% else %}
{% set returnVersionsTableRows = [] %}

Expand Down
2 changes: 1 addition & 1 deletion test/controllers/licences.controller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ describe('Licences controller', () => {
expect(response.statusCode).to.equal(200)
expect(response.payload).to.contain('Licence set up')
expect(response.payload).to.contain('Requirements for returns')
expect(response.payload).to.contain('No requirements for returns for this licence.')
expect(response.payload).to.contain('No requirements for returns have been set up for this licence.')
expect(response.payload).to.contain('Charge information')
expect(response.payload).to.contain('No charge information for this licence.')
expect(response.payload).to.contain('Agreements')
Expand Down

0 comments on commit ee612c8

Please sign in to comment.