Skip to content

Commit

Permalink
Fixes test.
Browse files Browse the repository at this point in the history
  • Loading branch information
steven2308 committed Aug 31, 2023
1 parent 6295252 commit abf0673
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/behavior/nestable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,12 @@ async function shouldBehaveLikeNestable(
});

it('cannot transfer child from not existing parent', async function () {
const badChildId = 99;
const badTokenId = 999;
const toOwner = tokenOwner.address;
await expect(
parent
.connect(tokenOwner)
.transferChild(badChildId, toOwner, 0, 0, child.address, childId, false, '0x'),
.transferChild(badTokenId, toOwner, 0, 0, child.address, childId, false, '0x'),
).to.be.revertedWithCustomError(child, 'ERC721InvalidTokenId');
});

Expand Down Expand Up @@ -817,12 +817,12 @@ async function shouldBehaveLikeNestable(
});

it('cannot transfer child from not existing parent', async function () {
const badChildId = 99;
const badTokenId = 999;
const toOwner = tokenOwner.address;
await expect(
parent
.connect(tokenOwner)
.transferChild(badChildId, toOwner, 0, 0, child.address, childId, true, '0x'),
.transferChild(badTokenId, toOwner, 0, 0, child.address, childId, true, '0x'),
).to.be.revertedWithCustomError(child, 'ERC721InvalidTokenId');
});

Expand Down

0 comments on commit abf0673

Please sign in to comment.