difftreelog
Update contracts tests
in: master
2 files changed
tests/src/contracts.test.tsdiffbeforeafterboth89 return (result.result.asSuccess.data[0] == 0x00) ? false : true;89 return (result.result.asSuccess.data[0] == 0x00) ? false : true;90}90}919192describe('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);979798 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);100101101 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.');tests/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);