Skip to content

Commit

Permalink
Fix: Charge information workflow unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Beckyrose200 committed Oct 24, 2024
1 parent 397dc89 commit eb81d3d
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ experiment('internal/modules/charge-information/controller', () => {

sandbox.stub(services.water.chargeVersionWorkflows, 'postChargeVersionWorkflow').resolves()
sandbox.stub(services.water.chargeVersionWorkflows, 'deleteChargeVersionWorkflow').resolves()
sandbox.stub(services.system.workflow, 'supplementary').resolves()
})

afterEach(async () => {
Expand Down Expand Up @@ -196,11 +195,6 @@ experiment('internal/modules/charge-information/controller', () => {
await controller.postRemoveChargeInformationWorkflow(request, h)
})

test('calls the system repo to flag for supplementary billing', async () => {
const [workflowId] = services.system.workflow.supplementary.lastCall.args
expect(workflowId).to.equal('test-charge-version-workflow-id')
})

test('deletes the charge version workflow', async () => {
const [workflowId] = services.water.chargeVersionWorkflows.deleteChargeVersionWorkflow.lastCall.args
expect(workflowId).to.equal('test-charge-version-workflow-id')
Expand Down

0 comments on commit eb81d3d

Please sign in to comment.