git.delta.rocks / unique-network / refs/commits / 78c2433f7564

difftreelog

Remove .only

Greg Zaitsev2021-07-15parent: #c33c2f5.patch.diff
in: master

2 files changed

modifiedtests/src/removeCollectionSponsor.test.tsdiffbeforeafterboth
--- a/tests/src/removeCollectionSponsor.test.ts
+++ b/tests/src/removeCollectionSponsor.test.ts
@@ -28,7 +28,7 @@
 let alice: IKeyringPair;
 let bob: IKeyringPair;
 
-describe.only('integration test: ext. removeCollectionSponsor():', () => {
+describe('integration test: ext. removeCollectionSponsor():', () => {
 
   before(async () => {
     await usingApi(async () => {
@@ -85,7 +85,7 @@
 
 });
 
-describe.only('(!negative test!) integration test: ext. removeCollectionSponsor():', () => {
+describe('(!negative test!) integration test: ext. removeCollectionSponsor():', () => {
   before(async () => {
     await usingApi(async () => {
       const keyring = new Keyring({ type: 'sr25519' });
modifiedtests/src/scheduler.test.tsdiffbeforeafterboth
before · tests/src/scheduler.test.ts
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56import chai from 'chai';7import chaiAsPromised from 'chai-as-promised';8import privateKey from './substrate/privateKey';9import usingApi from './substrate/substrate-api';10import {11  createItemExpectSuccess,12  createCollectionExpectSuccess,13  scheduleTransferExpectSuccess,14  setCollectionSponsorExpectSuccess,15  confirmSponsorshipExpectSuccess,16} from './util/helpers';1718chai.use(chaiAsPromised);1920describe('Integration Test scheduler base transaction', () => {21  it.only('User can transfer owned token with delay (scheduler)', async () => {22    await usingApi(async () => {23      const Alice = privateKey('//Alice');24      const Bob = privateKey('//Bob');25      // nft26      const nftCollectionId = await createCollectionExpectSuccess();27      const newNftTokenId = await createItemExpectSuccess(Alice, nftCollectionId, 'NFT');28      await setCollectionSponsorExpectSuccess(nftCollectionId, Alice.address);29      await confirmSponsorshipExpectSuccess(nftCollectionId);3031      await scheduleTransferExpectSuccess(nftCollectionId, newNftTokenId, Alice, Bob, 1, 6000, 4);32    });33  });34});
after · tests/src/scheduler.test.ts
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56import chai from 'chai';7import chaiAsPromised from 'chai-as-promised';8import privateKey from './substrate/privateKey';9import usingApi from './substrate/substrate-api';10import {11  createItemExpectSuccess,12  createCollectionExpectSuccess,13  scheduleTransferExpectSuccess,14  setCollectionSponsorExpectSuccess,15  confirmSponsorshipExpectSuccess,16} from './util/helpers';1718chai.use(chaiAsPromised);1920describe('Integration Test scheduler base transaction', () => {21  it('User can transfer owned token with delay (scheduler)', async () => {22    await usingApi(async () => {23      const Alice = privateKey('//Alice');24      const Bob = privateKey('//Bob');25      // nft26      const nftCollectionId = await createCollectionExpectSuccess();27      const newNftTokenId = await createItemExpectSuccess(Alice, nftCollectionId, 'NFT');28      await setCollectionSponsorExpectSuccess(nftCollectionId, Alice.address);29      await confirmSponsorshipExpectSuccess(nftCollectionId);3031      await scheduleTransferExpectSuccess(nftCollectionId, newNftTokenId, Alice, Bob, 1, 6000, 4);32    });33  });34});