difftreelog
Integration tests setConstOnChainSchema and setVariableOnChainSchema fixed
in: master
4 files changed
tests/src/change-collection-owner.test.tsdiffbeforeafterboth--- a/tests/src/change-collection-owner.test.ts
+++ b/tests/src/change-collection-owner.test.ts
@@ -12,7 +12,7 @@
chai.use(chaiAsPromised);
const expect = chai.expect;
-describe.only('Integration Test changeCollectionOwner(collection_id, new_owner):', () => {
+describe('Integration Test changeCollectionOwner(collection_id, new_owner):', () => {
it('Changing owner changes owner address', async () => {
await usingApi(async api => {
const collectionId = await createCollectionExpectSuccess();
@@ -31,7 +31,7 @@
});
});
-describe.only('Negative Integration Test changeCollectionOwner(collection_id, new_owner):', () => {
+describe('Negative Integration Test changeCollectionOwner(collection_id, new_owner):', () => {
it('Not owner can\'t change owner.', async () => {
await usingApi(async api => {
const collectionId = await createCollectionExpectSuccess();
tests/src/eth/nonFungible.test.tsdiffbeforeafterboth--- a/tests/src/eth/nonFungible.test.ts
+++ b/tests/src/eth/nonFungible.test.ts
@@ -61,7 +61,7 @@
});
});
-describe.only('Plain calls', () => {
+describe('Plain calls', () => {
itWeb3('Can perform approve()', async ({ web3, api }) => {
const collection = await createCollectionExpectSuccess({
mode: { type: 'NFT' },
tests/src/setConstOnChainSchema.test.tsdiffbeforeafterboth--- a/tests/src/setConstOnChainSchema.test.ts
+++ b/tests/src/setConstOnChainSchema.test.ts
@@ -38,7 +38,7 @@
await usingApi(async (api) => {
const collectionId = await createCollectionExpectSuccess();
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.eq(Alice.address);
const setShema = api.tx.nft.setConstOnChainSchema(collectionId, Shema);
await submitTransactionAsync(Alice, setShema);
});
@@ -88,7 +88,7 @@
await usingApi(async (api) => {
const collectionId = await createCollectionExpectSuccess();
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.eq(Alice.address);
const setShema = api.tx.nft.setConstOnChainSchema(collectionId, Shema);
await expect(submitTransactionExpectFailAsync(Bob, setShema)).to.be.rejected;
});
tests/src/setVariableOnChainSchema.test.tsdiffbeforeafterboth38 await usingApi(async (api) => {38 await usingApi(async (api) => {39 const collectionId = await createCollectionExpectSuccess();39 const collectionId = await createCollectionExpectSuccess();40 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();40 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();41 expect(collection.Owner).to.be.deep.eq(normalizeAccountId(Alice.address));41 expect(collection.Owner).to.be.eq(Alice.address);42 const setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);42 const setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);43 await submitTransactionAsync(Alice, setSchema);43 await submitTransactionAsync(Alice, setSchema);44 });44 });88 await usingApi(async (api) => {88 await usingApi(async (api) => {89 const collectionId = await createCollectionExpectSuccess();89 const collectionId = await createCollectionExpectSuccess();90 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();90 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();91 expect(collection.Owner).to.be.deep.eq(normalizeAccountId(Alice.address));91 expect(collection.Owner).to.be.eq(Alice.address);92 const setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);92 const setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);93 await expect(submitTransactionExpectFailAsync(Bob, setSchema)).to.be.rejected;93 await expect(submitTransactionExpectFailAsync(Bob, setSchema)).to.be.rejected;94 });94 });