git.delta.rocks / unique-network / refs/commits / 155f75c524c6

difftreelog

tests(app-promotion): fix a test to new expected behavior

Fahrrader2022-09-20parent: #385c966.patch.diff
in: master

1 file changed

modifiedtests/src/app-promotion.test.tsdiffbeforeafterboth
555 const flipper = await helper.eth.deployFlipper(contractOwner);555 const flipper = await helper.eth.deployFlipper(contractOwner);
556 556
557 await helper.executeExtrinsic(palletAdmin, 'api.tx.appPromotion.sponsorContract', [flipper.options.address]);557 await helper.executeExtrinsic(palletAdmin, 'api.tx.appPromotion.sponsorContract', [flipper.options.address]);
558 const stopSponsoringResult = await helper.executeExtrinsic(nonAdmin, 'api.tx.appPromotion.stopSponsoringContract', [flipper.options.address]);558 await expect(helper.executeExtrinsic(nonAdmin, 'api.tx.appPromotion.stopSponsoringContract', [flipper.options.address]))
559 expect(stopSponsoringResult.status).to.equal('Fail');559 .to.be.rejectedWith(/appPromotion\.NoPermission/);
560 expect(stopSponsoringResult.moduleError).to.equal('appPromotion.NoPermission');
561 });560 });
562 561
563 itEth('should not affect a contract which is not sponsored by pallete', async ({helper}) => {562 itEth('should not affect a contract which is not sponsored by pallete', async ({helper}) => {