Skip to content

Commit

Permalink
Merge pull request #136 from companieshouse/feature/SEC-144
Browse files Browse the repository at this point in the history
SEC-144 Add CSRF error handling and error page
  • Loading branch information
NeilShadrach authored Nov 5, 2024
2 parents c480eb8 + 5575ba1 commit 52b040a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/server/routes/applications.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,7 @@ describe('routes/applications.js', () => {
return request(app)
.post(slug)
.set('Cookie', signedInCookie)
.send({ _csrf: CSRF_TOKEN })
.send({ keyName: 'keyName' })
.send({ _csrf: CSRF_TOKEN, keyName: 'keyName' })
.then(response => {
expect(stubLogger).to.have.callCount(6);
expect(stubValidateDeleteApplication).to.have.been.calledOnce;
Expand Down

0 comments on commit 52b040a

Please sign in to comment.