From a3e43c157843907d377b7134a8b9067d3e28f581 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 20 Aug 2020 13:42:19 +0200 Subject: [PATCH] add totalSupply unit test --- test/unit/balancer/Balancer.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/balancer/Balancer.test.ts b/test/unit/balancer/Balancer.test.ts index fd399495..c8cf83d0 100644 --- a/test/unit/balancer/Balancer.test.ts +++ b/test/unit/balancer/Balancer.test.ts @@ -133,6 +133,10 @@ describe('Balancer flow', () => { const currentOceanReserve = await Pool.getOceanReserve(alice, alicePoolAddress) assert(currentOceanReserve > 0) }) + it('Get total supply of pool tokens', async () => { + const totalSupply = await Pool.totalSupply(alicePoolAddress) + assert(totalSupply > 0) + }) it('Get amount of Ocean needed to buy 1 dtToken', async () => { const requiredOcean = await Pool.getOceanNeeded(alice, alicePoolAddress, '1') assert(requiredOcean > 0)