Skip to content

Commit

Permalink
Update check service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozzey committed Feb 4, 2025
1 parent 03e093d commit 96779fe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/services/return-logs/setup/check.service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,19 @@ describe('Return Logs Setup - Check service', () => {
before(async () => {
session = await SessionHelper.add({
data: {
endDate: '2005-03-31T00:00:00.000Z',
meterProvided: 'no',
periodEndDay: 31,
periodEndMonth: 12,
periodStartDay: 1,
periodStartMonth: 1,
purposes: 'Evaporative Cooling',
receivedDate: '2025-01-31T00:00:00.000Z',
reported: 'volumes',
returnReference: '1234',
siteDescription: 'POINT A, TEST SITE DESCRIPTION',
startDate: '2004-04-01T00:00:00.000Z',
twoPartTariff: false,
units: 'megalitres'
}
})
Expand All @@ -37,6 +46,7 @@ describe('Return Logs Setup - Check service', () => {
const result = await CheckService.go(session.id, yarStub)

expect(result).to.equal({
abstractionPeriod: '1 January to 31 December',
activeNavBar: 'search',
meterMake: undefined,
meterProvided: 'no',
Expand All @@ -52,10 +62,14 @@ describe('Return Logs Setup - Check service', () => {
},
notification: undefined,
pageTitle: 'Check details and enter new volumes or readings',
purposes: 'Evaporative Cooling',
returnReceivedDate: '31 January 2025',
reportingFigures: 'Volumes',
returnPeriod: '1 April 2004 to 31 March 2005',
returnReference: '1234',
sessionId: session.id,
siteDescription: 'POINT A, TEST SITE DESCRIPTION',
tariff: 'Standard',
units: 'Megalitres'
})
})
Expand Down

0 comments on commit 96779fe

Please sign in to comment.