git.delta.rocks / unique-network / refs/commits / 4640cd75b996

difftreelog

tests: move removal from non-WL test to positive

Yaroslav Bolyukin2021-01-28parent: #54428b0.patch.diff
in: master

1 file changed

modifiedtests/src/removeFromWhiteList.test.tsdiffbeforeafterboth
43 expect(await isWhitelisted(collectionId, bob.address)).to.be.false;43 expect(await isWhitelisted(collectionId, bob.address)).to.be.false;
44 });44 });
45
46 it('allows removal from collection with unset whitelist status', async () => {
47 await usingApi(async () => {
48 const collectionWithoutWhitelistId = await createCollectionExpectSuccess();
49 await enableWhiteListExpectSuccess(alice, collectionWithoutWhitelistId);
50 await addToWhiteListExpectSuccess(alice, collectionWithoutWhitelistId, bob.address);
51 await disableWhiteListExpectSuccess(alice, collectionWithoutWhitelistId);
52
53 await removeFromWhiteListExpectSuccess(alice, collectionWithoutWhitelistId, bob.address);
54 });
55 });
45});56});
4657
47describe('Negative Integration Test removeFromWhiteList', () => {58describe('Negative Integration Test removeFromWhiteList', () => {
74 });85 });
75 });86 });
76
77 it('fails on removal from collection with unset whitelist status', async () => {
78 await usingApi(async () => {
79 const collectionId = await createCollectionExpectSuccess();
80 await enableWhiteListExpectSuccess(alice, collectionId);
81 await addToWhiteListExpectSuccess(alice, collectionId, bob.address);
82 await disableWhiteListExpectSuccess(alice, collectionId);
83
84 await removeFromWhiteListExpectFailure(alice, collectionId, bob.address);
85 });
86 });
87});87});
8888