difftreelog
Tests cleanup
in: master
3 files changed
tests/src/pallet-presence.test.tsdiffbeforeafterboth--- a/tests/src/pallet-presence.test.ts
+++ b/tests/src/pallet-presence.test.ts
@@ -42,7 +42,7 @@
'auraext'
];
-describe.only('Pallet presence', () => {
+describe('Pallet presence', () => {
it('Required pallets are present', async () => {
await usingApi(async api => {
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.tsdiffbeforeafterboth28let alice: IKeyringPair;28let alice: IKeyringPair;29let bob: IKeyringPair;29let bob: IKeyringPair;303031describe('integration test: ext. removeCollectionSponsor():', () => {31describe.only('integration test: ext. removeCollectionSponsor():', () => {323233 before(async () => {33 before(async () => {34 await usingApi(async () => {34 await usingApi(async () => {38 });38 });39 });39 });404041 it('Remove NFT collection sponsor stops sponsorship', async () => {41 it('Removing NFT collection sponsor stops sponsorship', async () => {42 const collectionId = await createCollectionExpectSuccess();42 const collectionId = await createCollectionExpectSuccess();43 await setCollectionSponsorExpectSuccess(collectionId, bob.address);43 await setCollectionSponsorExpectSuccess(collectionId, bob.address);44 await confirmSponsorshipExpectSuccess(collectionId, '//Bob');44 await confirmSponsorshipExpectSuccess(collectionId, '//Bob');858586});86});878788describe('(!negative test!) integration test: ext. removeCollectionSponsor():', () => {88describe.only('(!negative test!) integration test: ext. removeCollectionSponsor():', () => {89 before(async () => {89 before(async () => {90 await usingApi(async () => {90 await usingApi(async () => {91 const keyring = new Keyring({ type: 'sr25519' });91 const keyring = new Keyring({ type: 'sr25519' });