--- a/tests/src/nesting/migration-check.test.ts +++ b/tests/src/nesting/migration-check.test.ts @@ -56,8 +56,8 @@ owner: {substrate: alice.address}, constData: '0x0000', variableData: '0x1111', - } - } + }, + }, ); const events1 = await executeTransaction(api, alice, txNft); const result1 = getCreateItemResult(events1); @@ -117,21 +117,13 @@ const collectionNew = (await api.query.common.collectionById(collectionId)).toJSON() as any; // Make sure the extra fields are what they should be - expect((await api.rpc.unique.collectionProperties( - collectionId, ['_old_constOnChainSchema']))[0].value.toHex() - ).to.be.equal(collectionOld.constOnChainSchema); + expect((await api.rpc.unique.collectionProperties(collectionId, ['_old_constOnChainSchema']))[0].value.toHex()).to.be.equal(collectionOld.constOnChainSchema); - expect((await api.rpc.unique.collectionProperties( - collectionId, ['_old_variableOnChainSchema']))[0].value.toHex() - ).to.be.equal(collectionOld.variableOnChainSchema); + expect((await api.rpc.unique.collectionProperties(collectionId, ['_old_variableOnChainSchema']))[0].value.toHex()).to.be.equal(collectionOld.variableOnChainSchema); - expect((await api.rpc.unique.collectionProperties( - collectionId, ['_old_offchainSchema']))[0].value.toHex() - ).to.be.equal(collectionOld.offchainSchema); + expect((await api.rpc.unique.collectionProperties(collectionId, ['_old_offchainSchema']))[0].value.toHex()).to.be.equal(collectionOld.offchainSchema); - expect((await api.rpc.unique.collectionProperties( - collectionId, ['_old_schemaVersion']))[0].value.toHuman() - ).to.be.equal(collectionOld.schemaVersion); + expect((await api.rpc.unique.collectionProperties(collectionId, ['_old_schemaVersion']))[0].value.toHuman()).to.be.equal(collectionOld.schemaVersion); expect(collectionNew.permissions).to.be.deep.equal({ access: collectionOld.access, @@ -155,13 +147,9 @@ const nftNew = (await api.query.nonfungible.tokenData(collectionId, nftId)).toJSON() as any; // Make sure the extra fields are what they should be - expect((await api.rpc.unique.tokenProperties( - collectionId, nftId, ['_old_constData']))[0].value.toHex() - ).to.be.equal(nftOld.constData); + expect((await api.rpc.unique.tokenProperties(collectionId, nftId, ['_old_constData']))[0].value.toHex()).to.be.equal(nftOld.constData); - expect((await api.rpc.unique.tokenProperties( - collectionId, nftId, ['_old_variableData']))[0].value.toHex() - ).to.be.equal(nftOld.variableData); + expect((await api.rpc.unique.tokenProperties(collectionId, nftId, ['_old_variableData']))[0].value.toHex()).to.be.equal(nftOld.variableData); // Get rid of extra fields to perform comparison on the rest of the NFT delete nftOld.constData;