Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Dec 9, 2024
1 parent b20d635 commit 6e27a8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/jest/unit/handlers/util/simulation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ describe('simulation', () => {
const status = simulationStatusTranslation(SimulationStatus.SystemDown, log)
expect(status).toStrictEqual(RoutingApiSimulationStatus.SYSTEM_DOWN)
})

it('returns slippage too low for slippage too low simulation status', () => {
const status = simulationStatusTranslation(SimulationStatus.SlippageTooLow, log)
expect(status).toStrictEqual(RoutingApiSimulationStatus.SLIPPAGE_TOO_LOW)
})
})

0 comments on commit 6e27a8e

Please sign in to comment.