123456import chai from 'chai';7import chaiAsPromised from 'chai-as-promised';8import {createCollectionExpectFailure, createCollectionExpectSuccess} from './util/helpers';910chai.use(chaiAsPromised);1112describe('integration test: ext. createCollection():', () => {13 it('Create new NFT collection', async () => {14 await createCollectionExpectSuccess({name: 'A', description: 'B', tokenPrefix: 'C', mode: {type: 'NFT'}});15 });16 it('Create new NFT collection whith collection_name of maximum length (64 bytes)', async () => {17 await createCollectionExpectSuccess({name: 'A'.repeat(64)});18 });19 it('Create new NFT collection whith collection_description of maximum length (256 bytes)', async () => {20 await createCollectionExpectSuccess({description: 'A'.repeat(256)});21 });22 it('Create new NFT collection whith token_prefix of maximum length (16 bytes)', async () => {23 await createCollectionExpectSuccess({tokenPrefix: 'A'.repeat(16)});24 });25 it('Create new Fungible collection', async () => {26 await createCollectionExpectSuccess({mode: {type: 'Fungible', decimalPoints: 0}});27 });28 it('Create new ReFungible collection', async () => {29 await createCollectionExpectSuccess({mode: {type: 'ReFungible'}});30 });31});3233describe('(!negative test!) integration test: ext. createCollection():', () => {34 it('(!negative test!) create new NFT collection whith incorrect data (collection_name)', async () => {35 await createCollectionExpectFailure({name: 'A'.repeat(65), mode: {type: 'NFT'}});36 });37 it('(!negative test!) create new NFT collection whith incorrect data (collection_description)', async () => {38 await createCollectionExpectFailure({description: 'A'.repeat(257), mode: {type: 'NFT'}});39 });40 it('(!negative test!) create new NFT collection whith incorrect data (token_prefix)', async () => {41 await createCollectionExpectFailure({tokenPrefix: 'A'.repeat(17), mode: {type: 'NFT'}});42 });43});