Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruikshanks committed Sep 8, 2024
1 parent 2964e78 commit 757d255
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions test/services/return-requirements/points.service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ describe('Return Requirements - Select Points service', () => {
ngr1: 'TQ 69212 50394',
ngr2: null,
ngr3: null,
ngr4: null
ngr4: null,
naldPointId: 100789
})

Sinon.stub(FetchPointsService, 'go').resolves([point])
Expand All @@ -81,12 +82,12 @@ describe('Return Requirements - Select Points service', () => {
licenceId: '8b7f78ba-f3ad-4cb6-a058-78abc4d1383d',
licencePoints: [
{
id: 'd03d7d7c-4e33-4b4d-ac9b-6ebac9a5e5f6',
naldPointId: '100789',
description: 'At National Grid Reference TQ 69212 50394 (RIVER MEDWAY AT YALDING INTAKE)'
}
],
licenceRef: '01/ABC',
points: ''
selectedNaldPointIds: ''
}, { skip: ['sessionId'] })
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ describe('Return Requirements - Submit Points service', () => {
backLink: `/system/return-requirements/${session.id}/purpose/0`,
licenceId: '8b7f78ba-f3ad-4cb6-a058-78abc4d1383d',
licencePoints: [{
id: 'd03d7d7c-4e33-4b4d-ac9b-6ebac9a5e5f6',
naldPointId: '100789',
description: 'At National Grid Reference TQ 69212 50394 (RIVER MEDWAY AT YALDING INTAKE)'
}],
licenceRef: '01/ABC',
points: ''
selectedNaldPointIds: ''
}, { skip: ['sessionId', 'error'] })
})

Expand All @@ -158,7 +158,8 @@ function _points () {
ngr1: 'TQ 69212 50394',
ngr2: null,
ngr3: null,
ngr4: null
ngr4: null,
naldPointId: 100789
})

return [point]
Expand Down

0 comments on commit 757d255

Please sign in to comment.