git.delta.rocks / unique-network / refs/commits / 0c73e0af9458

difftreelog

Fix test

Max Andreev2022-12-10parent: #aea4225.patch.diff
in: master

1 file changed

modifiedtests/src/eth/collectionLimits.test.tsdiffbeforeafterboth
116 .setCollectionLimit(CollectionLimits.TransferEnabled, true, 3)116 .setCollectionLimit(CollectionLimits.TransferEnabled, true, 3)
117 .call()).to.be.rejectedWith(`can't convert value to boolean "${invalidLimits.transfersEnabled}"`);117 .call()).to.be.rejectedWith(`can't convert value to boolean "${invalidLimits.transfersEnabled}"`);
118118
119 await expect(collectionEvm.methods119 expect(() => collectionEvm.methods
120 .setCollectionLimit(CollectionLimits.SponsoredDataSize, true, -1)120 .setCollectionLimit(CollectionLimits.SponsoredDataSize, true, -1).send()).to.throw('value out-of-bounds');
121 .call()).to.be.rejectedWith('Error: value out-of-bounds (argument="value", value=-1, code=INVALID_ARGUMENT');
122 }));121 }));
123});122});
124123