difftreelog
Tests cleanup
in: master
3 files changed
tests/src/pallet-presence.test.tsdiffbeforeafterboth42 'auraext'42 'auraext'43];43];444445describe.only('Pallet presence', () => {45describe('Pallet presence', () => {46 it('Required pallets are present', async () => {46 it('Required pallets are present', async () => {47 await usingApi(async api => {47 await usingApi(async api => {48 for (let i=0; i<requiredPallets.length; i++) {48 for (let i=0; i<requiredPallets.length; i++) {tests/src/removeCollectionAdmin.test.tsdiffbeforeafterboth--- a/tests/src/removeCollectionAdmin.test.ts
+++ b/tests/src/removeCollectionAdmin.test.ts
@@ -20,7 +20,7 @@
const Alice = privateKey('//Alice');
const Bob = privateKey('//Bob');
const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();
- expect(collection.Owner).to.be.deep.eq(normalizeAccountId(Alice.address));
+ expect(collection.Owner).to.be.deep.eq(Alice.address);
// first - add collection admin Bob
const addAdminTx = api.tx.nft.addCollectionAdmin(collectionId, normalizeAccountId(Bob.address));
await submitTransactionAsync(Alice, addAdminTx);
tests/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('integration test: ext. removeCollectionSponsor():', () => {
+describe.only('integration test: ext. removeCollectionSponsor():', () => {
before(async () => {
await usingApi(async () => {
@@ -38,7 +38,7 @@
});
});
- it('Remove NFT collection sponsor stops sponsorship', async () => {
+ it('Removing NFT collection sponsor stops sponsorship', async () => {
const collectionId = await createCollectionExpectSuccess();
await setCollectionSponsorExpectSuccess(collectionId, bob.address);
await confirmSponsorshipExpectSuccess(collectionId, '//Bob');
@@ -85,7 +85,7 @@
});
-describe('(!negative test!) integration test: ext. removeCollectionSponsor():', () => {
+describe.only('(!negative test!) integration test: ext. removeCollectionSponsor():', () => {
before(async () => {
await usingApi(async () => {
const keyring = new Keyring({ type: 'sr25519' });