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:
parent
5b926cc3ac
commit
e07bebeb30
@ -170,11 +170,11 @@ describe('Pool unit test', () => {
|
|||||||
expect(await erc20Contract.methods.balanceOf(user1).call()).to.equal('0')
|
expect(await erc20Contract.methods.balanceOf(user1).call()).to.equal('0')
|
||||||
})
|
})
|
||||||
|
|
||||||
// it('#sharesBalance - should return user shares balance (datatoken balance, LPT balance, etc) ', async () => {
|
it('#sharesBalance - should return user shares balance (datatoken balance, LPT balance, etc) ', async () => {
|
||||||
// expect(await daiContract.methods.balanceOf(user1).call()).to.equal(
|
expect(await daiContract.methods.balanceOf(user1).call()).to.equal(
|
||||||
// web3.utils.toWei(await pool.sharesBalance(user1, contracts.daiAddress))
|
web3.utils.toWei(await pool.sharesBalance(user1, contracts.daiAddress))
|
||||||
// )
|
)
|
||||||
// })
|
})
|
||||||
|
|
||||||
it('#getNumTokens - should return num of tokens in pool (2)', async () => {
|
it('#getNumTokens - should return num of tokens in pool (2)', async () => {
|
||||||
expect(await pool.getNumTokens(poolAddress)).to.equal('2')
|
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 () => {
|
it('#sharesBalance - should return user shares balance (datatoken balance, LPT balance, etc) ', async () => {
|
||||||
// expect(await usdcContract.methods.balanceOf(user1).call()).to.equal(
|
expect(await usdcContract.methods.balanceOf(user1).call()).to.equal(
|
||||||
// await pool.sharesBalance(user1, contracts.usdcAddress)
|
await pool.sharesBalance(user1, contracts.usdcAddress)
|
||||||
// )
|
)
|
||||||
// })
|
})
|
||||||
|
|
||||||
it('#getNumTokens - should return num of tokens in pool (2)', async () => {
|
it('#getNumTokens - should return num of tokens in pool (2)', async () => {
|
||||||
expect(await pool.getNumTokens(poolAddress)).to.equal('2')
|
expect(await pool.getNumTokens(poolAddress)).to.equal('2')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user