Skip to content

Commit

Permalink
rename test and fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDormand96 committed Nov 27, 2023
1 parent 2c524fd commit 47ef669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('recurring payment entity', () => {
return RecurringPayment.fromResponse(response, optionSetData)
}

describe('cancelled data', () => {
describe('mappings with cancelled rp', () => {
it('is a recurring payment', () => {
const recurringPayment = getRecurringPayment()
expect(recurringPayment).toBeInstanceOf(RecurringPayment)
Expand Down Expand Up @@ -102,7 +102,7 @@ describe('recurring payment entity', () => {
})
})

describe('no cancelled data', () => {
describe('mappings without cancelled rp', () => {
it('is a recurring payment', () => {
const recurringPayment = getRecurringPayment({ defra_cancelleddate: null, defra_cancelledreason: null })
expect(recurringPayment).toBeInstanceOf(RecurringPayment)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { executeQuery, findDueRecurringPayments, RecurringPayment } from '@defra-fish/dynamics-lib'

export const getRecurringPayments = async date => {
return executeQuery(findDueRecurringPayments(date))
}
export const getRecurringPayments = async date => executeQuery(findDueRecurringPayments(date))

/**
* Process a recurring payment instruction
Expand Down

0 comments on commit 47ef669

Please sign in to comment.