From 6e27a8ef05a9c23cea879243ff0a327e59eb7fb0 Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:04:06 -0500 Subject: [PATCH] add unit test --- test/jest/unit/handlers/util/simulation.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/jest/unit/handlers/util/simulation.test.ts b/test/jest/unit/handlers/util/simulation.test.ts index c8925ae0c8..588c3a92cd 100644 --- a/test/jest/unit/handlers/util/simulation.test.ts +++ b/test/jest/unit/handlers/util/simulation.test.ts @@ -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) + }) })