From 68d7d5e883a92f477dfaa61a6f8c718a46a70364 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 7 Feb 2022 11:40:38 +0100 Subject: [PATCH] fix decay test --- backend/src/util/decay.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/util/decay.test.ts b/backend/src/util/decay.test.ts index e34d8b58b..2db9411b5 100644 --- a/backend/src/util/decay.test.ts +++ b/backend/src/util/decay.test.ts @@ -1,3 +1,4 @@ +import 'reflect-metadata' // This might be wise to load in a test setup file import { decayFormula, calculateDecay } from './decay' describe('utils/decay', () => { @@ -35,6 +36,6 @@ describe('utils/decay', () => { it('returns input amount when from and to is the same', async () => { const now = new Date() - expect(await calculateDecay(100.0, now, now)).toBe(100.0) + expect((await calculateDecay(100.0, now, now)).balance).toBe(100.0) }) })