git.delta.rocks / unique-network / refs/commits / 1a514428bdf0

difftreelog

Fix create collection tests

Trubnikov Sergey2022-05-27parent: #7c4183b.patch.diff
in: master

1 file changed

modifiedtests/src/createCollection.test.tsdiffbeforeafterboth
42 it('create new collection with properties #1', async () => {42 it('create new collection with properties #1', async () => {
43 await createCollectionWithPropsExpectSuccess({name: 'A', description: 'B', tokenPrefix: 'C', mode: {type: 'NFT'},43 await createCollectionWithPropsExpectSuccess({name: 'A', description: 'B', tokenPrefix: 'C', mode: {type: 'NFT'},
44 properties: [{key: 'key1', value: 'val1'}],44 properties: [{key: 'key1', value: 'val1'}],
45 propPerm: [{key: 'key1', tokenOwner: true, mutable: false, collectionAdmin: true}]});45 propPerm: [{key: 'key1', permission: {tokenOwner: true, mutable: false, collectionAdmin: true}}]});
46 });46 });
4747
48 it('create new collection with properties #2', async () => {48 it('create new collection with properties #2', async () => {
49 await createCollectionWithPropsExpectSuccess({name: 'A', description: 'B', tokenPrefix: 'C', mode: {type: 'NFT'},49 await createCollectionWithPropsExpectSuccess({name: 'A', description: 'B', tokenPrefix: 'C', mode: {type: 'NFT'},
50 properties: [{key: 'key1', value: 'val1'}],50 properties: [{key: 'key1', value: 'val1'}],
51 propPerm: [{key: 'key1', tokenOwner: false, mutable: true, collectionAdmin: false}]});51 propPerm: [{key: 'key1', permission: {tokenOwner: true, mutable: false, collectionAdmin: true}}]});
52 });52 });
5353
54 it('create new collection with properties #3', async () => {54 it('create new collection with properties #3', async () => {
55 await createCollectionWithPropsExpectSuccess({name: 'A', description: 'B', tokenPrefix: 'C', mode: {type: 'NFT'},55 await createCollectionWithPropsExpectSuccess({name: 'A', description: 'B', tokenPrefix: 'C', mode: {type: 'NFT'},
56 properties: [{key: 'key1', value: 'val1'}],56 properties: [{key: 'key1', value: 'val1'}],
57 propPerm: [{key: 'key1', tokenOwner: true, mutable: false, collectionAdmin: false}]});57 propPerm: [{key: 'key1', permission: {tokenOwner: true, mutable: false, collectionAdmin: true}}]});
58 });58 });
5959
60 it('Create new collection with extra fields', async () => {60 it('Create new collection with extra fields', async () => {