我的测试效果不佳。
我有这个错误。
"before each" hook for "transfers token balances":
请给我任何建议吗?
这是我的测试代码。 我的测试代码有问题吗?
describe('token transfer', async () => {
let result
beforeEach(async () => {
await token.approve(exchange, amount, { from: deployer })
})
describe('success', async () => {
beforeEach(async () => {
result = await token.transferFrom(deployer, receiver, 100, {from: exchange})
})
it('transfers token balances', async () => {
let balanceOf
balanceOf = await token.balanceOf(deployer)
balanceOf.toString().should.equal(tokens(999900).toString())
})
})
})