Skip to content

Commit

Permalink
Remove redundant whitespaces from ERC721Token.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
michald committed Apr 23, 2018
1 parent 16535fb commit 9ee09da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/token/ERC721/ERC721Token.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ contract('ERC721Token', function (accounts) {
await assertRevert(this.token.tokenByIndex(0));
});
});

describe('metadata', function () {
const sampleUri = 'mock://mytoken';

Expand Down Expand Up @@ -122,7 +122,7 @@ contract('ERC721Token', function (accounts) {
describe('tokenOfOwnerByIndex', function () {
const owner = creator;
const another = accounts[1];

describe('when the given index is lower than the amount of tokens owned by the given address', function () {
it('returns the token ID placed at the given index', async function () {
const tokenId = await this.token.tokenOfOwnerByIndex(owner, 0);
Expand Down Expand Up @@ -178,14 +178,14 @@ contract('ERC721Token', function (accounts) {
const owner = accounts[0];
const newTokenId = 300;
const anotherNewTokenId = 400;

await this.token.burn(tokenId, { from: owner });
await this.token.mint(owner, newTokenId, { from: owner });
await this.token.mint(owner, anotherNewTokenId, { from: owner });

const count = await this.token.totalSupply();
count.toNumber().should.be.equal(3);

const tokensListed = await Promise.all(_.range(3).map(i => this.token.tokenByIndex(i)));
const expectedTokens = _.filter(
[firstTokenId, secondTokenId, newTokenId, anotherNewTokenId],
Expand Down

0 comments on commit 9ee09da

Please sign in to comment.