difftreelog
tests(app-promotion): fix a test to new expected behavior
in: master
1 file changed
tests/src/app-promotion.test.tsdiffbeforeafterboth555 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}) => {