Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
clarify the test descriptions
  • Loading branch information
Leo Arias committed Sep 6, 2018
commit 7d62c0c10267a28726d0f43f5698f072d5aabfed
4 changes: 2 additions & 2 deletions test/token/ERC721/ERC721MintBurn.behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ function shouldBehaveLikeMintAndBurnERC721 (accounts) {
});
});

describe('when there is a previous approval', function () {
describe('when there is a previous approval burned', function () {
beforeEach(async function () {
await this.token.approve(accounts[1], tokenId, { from: sender });
const result = await this.token.burn(tokenId, { from: sender });
logs = result.logs;
});

context('when the token ID does not exist', function () {
context('getApproved', function () {
it('reverts', async function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the current phrasing a bit confusing: maybe we could merge the context and it blocks, and change the description to something like 'causes getApproved to revert'?

We also may want to add a test block for getApproved, explicitly checking for this, though that could be considered part of #1148.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nventuro I made a quick attempt at clarifying the descriptions. And added a comment on #1148 to not forget about the getApproved tests.

await assertRevert(this.token.getApproved(tokenId));
});
Expand Down