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

uncomment and fix broken tests

This commit is contained in:
Miquel A. Cabot 2022-04-13 20:01:17 +02:00
parent 5b926cc3ac
commit e07bebeb30

View File

@ -170,11 +170,11 @@ describe('Pool unit test', () => {
expect(await erc20Contract.methods.balanceOf(user1).call()).to.equal('0')
})
// it('#sharesBalance - should return user shares balance (datatoken balance, LPT balance, etc) ', async () => {
// expect(await daiContract.methods.balanceOf(user1).call()).to.equal(
// web3.utils.toWei(await pool.sharesBalance(user1, contracts.daiAddress))
// )
// })
it('#sharesBalance - should return user shares balance (datatoken balance, LPT balance, etc) ', async () => {
expect(await daiContract.methods.balanceOf(user1).call()).to.equal(
web3.utils.toWei(await pool.sharesBalance(user1, contracts.daiAddress))
)
})
it('#getNumTokens - should return num of tokens in pool (2)', async () => {
expect(await pool.getNumTokens(poolAddress)).to.equal('2')
@ -676,11 +676,11 @@ describe('Pool unit test', () => {
)
})
// it('#sharesBalance - should return user shares balance (datatoken balance, LPT balance, etc) ', async () => {
// expect(await usdcContract.methods.balanceOf(user1).call()).to.equal(
// await pool.sharesBalance(user1, contracts.usdcAddress)
// )
// })
it('#sharesBalance - should return user shares balance (datatoken balance, LPT balance, etc) ', async () => {
expect(await usdcContract.methods.balanceOf(user1).call()).to.equal(
await pool.sharesBalance(user1, contracts.usdcAddress)
)
})
it('#getNumTokens - should return num of tokens in pool (2)', async () => {
expect(await pool.getNumTokens(poolAddress)).to.equal('2')