From d029160e7592c1029cb9ea9c420a233c57a1206b Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Mon, 18 Jan 2021 12:20:18 +0000 Subject: [PATCH] Add a check to admin test --- --- a/tests/src/addCollectionAdmin.test.ts +++ b/tests/src/addCollectionAdmin.test.ts @@ -46,6 +46,7 @@ const changeAdminTxCharlie = api.tx.nft.addCollectionAdmin(collectionId, Charlie.address); await submitTransactionAsync(Bob, changeAdminTxCharlie); const adminListAfterAddNewAdmin: any = (await api.query.nft.adminList(collectionId)); + expect(adminListAfterAddNewAdmin).to.be.contains(Bob.address); expect(adminListAfterAddNewAdmin).to.be.contains(Charlie.address); }); }); @@ -83,7 +84,7 @@ }); }); - it("Can't add collection admin of destroyed collection.", async () => { + it("Can't add an admin to a destroyed collection.", async () => { await usingApi(async (api) => { const collectionId = await createCollectionExpectSuccess(); const Alice = privateKey('//Alice'); -- gitstuff