difftreelog
Merge branch 'feature/fix-tests' of github.com:usetech-llc/nft_private into feature/fix-tests
in: master
3 files changed
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.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 setShema = api.tx.nft.setConstOnChainSchema(collectionId, Shema);42 const setShema = api.tx.nft.setConstOnChainSchema(collectionId, Shema);43 await submitTransactionAsync(Alice, setShema);43 await submitTransactionAsync(Alice, setShema);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 setShema = api.tx.nft.setConstOnChainSchema(collectionId, Shema);92 const setShema = api.tx.nft.setConstOnChainSchema(collectionId, Shema);93 await expect(submitTransactionExpectFailAsync(Bob, setShema)).to.be.rejected;93 await expect(submitTransactionExpectFailAsync(Bob, setShema)).to.be.rejected;94 });94 });tests/src/setVariableOnChainSchema.test.tsdiffbeforeafterboth--- a/tests/src/setVariableOnChainSchema.test.ts
+++ b/tests/src/setVariableOnChainSchema.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 setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);
await submitTransactionAsync(Alice, setSchema);
});
@@ -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 setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);
await expect(submitTransactionExpectFailAsync(Bob, setSchema)).to.be.rejected;
});