Skip to content

Commit

Permalink
Add ERC20 test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Nana-EC <[email protected]>
  • Loading branch information
Nana-EC committed Jul 21, 2022
1 parent 663e322 commit 056edc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/server/tests/acceptance/erc20.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('ERC20 Acceptance Tests', async function () {

describe('should behave like erc20', function() {
describe('total supply', function () {
it('returns the total amount of tokens', async function () {
it('@release returns the total amount of tokens', async function () {
const supply = await contract.totalSupply();
expect(supply.toString()).to.be.equal(initialSupply.toString());
});
Expand All @@ -108,7 +108,7 @@ describe('ERC20 Acceptance Tests', async function () {
});

describe('when the requested account has some tokens', function () {
it('returns the total amount of tokens', async function () {
it('@release returns the total amount of tokens', async function () {
const balance = await contract.balanceOf(initialHolder);
expect(balance.toString()).to.be.equal(initialSupply.toString());
});
Expand Down Expand Up @@ -144,7 +144,7 @@ describe('ERC20 Acceptance Tests', async function () {
amount = initialSupply;
});

it ('contract owner transfers tokens', async function () {
it ('@release contract owner transfers tokens', async function () {
tx = await contract.connect(tokenOwnerWallet).transfer(to, amount);
const ownerBalance = await contract.balanceOf(tokenOwner);
const toBalance = await contract.balanceOf(to);
Expand Down Expand Up @@ -275,7 +275,7 @@ describe('ERC20 Acceptance Tests', async function () {
});
});

describe('when the spender has unlimited allowance', function () {
describe('@release when the spender has unlimited allowance', function () {
beforeEach(async function () {
await contract.connect(tokenOwnerWallet).approve(spender, ethers.constants.MaxUint256);
});
Expand Down

0 comments on commit 056edc0

Please sign in to comment.