Skip to content

Commit

Permalink
refactor: crm seeder to LicenceDocumentHeaderSeeder
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangoulding committed Jan 30, 2025
1 parent 54a44d7 commit fe4cf63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { expect } = Code

// Test helpers
const LicenceHelper = require('../../support/helpers/licence.helper.js')
const CRMContactDetailsSeeder = require('../../support/seeders/crm-contact-details.seeder.js')
const LicenceDocumentHeaderSeeder = require('../../support/seeders/licence-document-header.seeder.js')

// Thing under test
const FetchLicenceContactDetailsService = require('../../../app/services/licences/fetch-licence-contact-details.service.js')
Expand All @@ -22,7 +22,7 @@ describe('Fetch Licence Contact Details service', () => {

describe('when the licence has a licence document header', () => {
before(async () => {
const { primaryUser: licenceDocumentHeader } = await CRMContactDetailsSeeder.seed(false)
const { primaryUser: licenceDocumentHeader } = await LicenceDocumentHeaderSeeder.seed(false)

licence = await LicenceHelper.add({
licenceRef: licenceDocumentHeader.licenceRef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { describe, it, before } = (exports.lab = Lab.script())
const { expect } = Code

// Test helpers
const CRMContactDetailsSeeder = require('../../../support/seeders/crm-contact-details.seeder.js')
const LicenceDocumentHeaderSeeder = require('../../../support/seeders/licence-document-header.seeder.js')

// Thing under test
const RecipientsService = require('../../../../app/services/notifications/setup/fetch-recipients.service.js')
Expand All @@ -22,7 +22,7 @@ describe('Notifications Setup - Recipients service', () => {
dueDate = '2023-04-28' // matches return log date
isSummer = 'false'

recipients = await CRMContactDetailsSeeder.seed()
recipients = await LicenceDocumentHeaderSeeder.seed()
})

describe('when there is a "primary user"', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

/**
* @module RecipientsSeeder
* @module LicenceDocumentHeaderSeeder
*/

const LicenceDocumentHeaderHelper = require('../helpers/licence-document-header.helper.js')
Expand Down

0 comments on commit fe4cf63

Please sign in to comment.