WIP: Fix/erc721 (#993)

* fix: defer lookup-specific info to implementations

* fix: change inheritance order, fix import
This commit is contained in:
Matt Condon
2018-06-12 14:46:32 -07:00
committed by Francisco Giordano
parent 9f1d294ba4
commit e1dc1411fc
5 changed files with 73 additions and 70 deletions

View File

@ -294,6 +294,20 @@ export default function shouldBehaveLikeERC721BasicToken (accounts) {
log.args._tokenId.toNumber().should.be.equal(tokenId);
log.args._data.should.be.equal(data);
});
describe('with an invalid token id', function () {
it('reverts', async function () {
await assertRevert(
transferFun.call(
this,
owner,
this.to,
unknownTokenId,
{ from: owner },
)
);
});
});
});
};
@ -366,10 +380,7 @@ export default function shouldBehaveLikeERC721BasicToken (accounts) {
});
itClearsApproval();
it('does not emit an approval event', async function () {
logs.length.should.be.equal(0);
});
itEmitsApprovalEvent(ZERO_ADDRESS);
});
context('when there was a prior approval', function () {