git.delta.rocks / unique-network / refs/commits / 12a37a0aa8c3

difftreelog

Update contracts tests

Greg Zaitsev2020-12-25parent: #dc63ebc.patch.diff
in: master

2 files changed

modifiedtests/src/contracts.test.tsdiffbeforeafterboth
89 return (result.result.asSuccess.data[0] == 0x00) ? false : true;89 return (result.result.asSuccess.data[0] == 0x00) ? false : true;
90}90}
9191
92describe('Contracts smoke test', () => {92describe('Contracts', () => {
93 it(`Can deploy smart contract Flipper, instantiate it and call it's get and flip messages.`, async () => {93 it(`Can deploy smart contract Flipper, instantiate it and call it's get and flip messages.`, async () => {
94 await usingApi(async api => {94 await usingApi(async api => {
95 const [contract, deployer] = await deployFlipper(api);95 const [contract, deployer] = await deployFlipper(api);
96 const initialGetResponse = await getFlipValue(contract, deployer);96 const initialGetResponse = await getFlipValue(contract, deployer);
9797
98 const bob = privateKey("//Bob");
98 const flip = contract.exec('flip', value, gasLimit);99 const flip = contract.exec('flip', value, gasLimit);
99 await submitTransactionAsync(deployer, flip);100 await submitTransactionAsync(bob, flip);
100101
101 const afterFlipGetResponse = await getFlipValue(contract, deployer);102 const afterFlipGetResponse = await getFlipValue(contract, deployer);
102 expect(afterFlipGetResponse).not.to.be.eq(initialGetResponse, 'Flipping should change value.');103 expect(afterFlipGetResponse).not.to.be.eq(initialGetResponse, 'Flipping should change value.');
modifiedtests/src/createItem.test.tsdiffbeforeafterboth
--- a/tests/src/createItem.test.ts
+++ b/tests/src/createItem.test.ts
@@ -8,7 +8,7 @@
   createItemExpectSuccess
 } from './util/helpers';
 
-describe.only('integration test: ext. createItem():', () => {
+describe('integration test: ext. createItem():', () => {
   it('Create new item in NFT collection', async () => {
     const createMode = 'NFT';
     const newCollectionID = await createCollectionExpectSuccess('0', '0', '0', createMode);