1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

add totalSupply unit test

This commit is contained in:
Matthias Kretschmann 2020-08-20 13:42:19 +02:00
parent 00257c3d60
commit a3e43c1578
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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)