difftreelog
tests: add tests for restriction disabling
in: master
1 file changed
tests/src/setCollectionLimits.test.tsdiffbeforeafterboth14 createCollectionExpectSuccess, getCreatedCollectionCount,14 createCollectionExpectSuccess, getCreatedCollectionCount,15 getCreateItemResult,15 getCreateItemResult,16 getDetailedCollectionInfo,16 getDetailedCollectionInfo,17 setCollectionLimitsExpectFailure,18 setCollectionLimitsExpectSuccess,17} from './util/helpers';19} from './util/helpers';182019chai.use(chaiAsPromised);21chai.use(chaiAsPromised);132 });134 });133 });135 });136137 it('fails when trying to enable OwnerCanTransfer after it was disabled', async () => {138 const collectionId = await createCollectionExpectSuccess();139 await setCollectionLimitsExpectSuccess(alice, collectionId, { OwnerCanTransfer: false });140 await setCollectionLimitsExpectFailure(alice, collectionId, { OwnerCanTransfer: true });141 });142143 it('fails when trying to enable OwnerCanDestroy after it was disabled', async () => {144 const collectionId = await createCollectionExpectSuccess();145 await setCollectionLimitsExpectSuccess(alice, collectionId, { OwnerCanDestroy: false });146 await setCollectionLimitsExpectFailure(alice, collectionId, { OwnerCanDestroy: true });147 });134});148});135149