Skip to content

Commit

Permalink
Fix missed/incorrect purpose test references
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruikshanks committed Aug 5, 2024
1 parent 9cce7f8 commit 84308df
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/models/charge-element.model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('Charge Element model', () => {
expect(result.id).to.equal(testRecord.id)

expect(result.purpose).to.be.an.instanceOf(PurposeModel)
expect(result.purpose).to.equal(testPurpose)
expect(result.purpose).to.equal(testPurpose, { skip: ['createdAt', 'updatedAt'] })
})
})

Expand Down
2 changes: 1 addition & 1 deletion test/models/charge-reference.model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ describe('Charge Reference model', () => {
expect(result.chargePurposeId).to.equal(testRecord.chargePurposeId)

expect(result.purpose).to.be.an.instanceOf(PurposeModel)
expect(result.purpose).to.equal(testPurpose)
expect(result.purpose).to.equal(testPurpose, { skip: ['createdAt', 'updatedAt'] })
})
})

Expand Down
2 changes: 1 addition & 1 deletion test/models/licence-version.model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Licence Version model', () => {
expect(result.id).to.equal(testRecord.id)

expect(result.purposes[0]).to.be.an.instanceOf(PurposeModel)
expect(result.purposes).to.equal([purpose])
expect(result.purposes).to.equal([purpose], { skip: ['createdAt', 'updatedAt'] })
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion test/models/return-requirement-purpose.model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('Return Requirement Purpose model', () => {
expect(result.id).to.equal(testRecord.id)

expect(result.purpose).to.be.an.instanceOf(PurposeModel)
expect(result.purpose).to.equal(testPurpose)
expect(result.purpose).to.equal(testPurpose, { skip: ['createdAt', 'updatedAt'] })
})
})

Expand Down
2 changes: 1 addition & 1 deletion test/support/seeders/licence-abstraction-data.seeder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

const SecondaryPurposesSeeder = require('./secondary-purpose.seeder.js')
const PrimaryPurposesSeeder = require('./primary-purpose.seeder.js')
const Purposes = require('../../../db/seeds/03-purposes.js')
const Purposes = require('../../../db/seeds/data/purposes.js')

const FinancialAgreementHelper = require('../helpers/financial-agreement.helper.js')
const LicenceFinancialAgreement = require('../helpers/licence-agreement.helper.js')
Expand Down

0 comments on commit 84308df

Please sign in to comment.