git.delta.rocks / unique-network / refs/commits / 15e4512df81d

difftreelog

source

tests/src/rmrk/createCollection.seqtest.ts729 Bsourcehistory
1import {getApiConnection} from '../substrate/substrate-api';2import {requirePallets, Pallets} from './util/helpers';3import {createCollection} from './util/tx';45describe('Integration test: create new collection', () => {6  let api: any;7  before(async function () {8    api = await getApiConnection();9    await requirePallets(this, [Pallets.RmrkCore]);10  });11121314  const alice = '//Alice';1516  it('create NFT collection', async () => {17    await createCollection(api, alice, 'test-metadata', 42, 'test-symbol');18  });1920  it('create NFT collection without token limit', async () => {21    await createCollection(api, alice, 'no-limit-metadata', null, 'no-limit-symbol');22  });2324  after(async() => { await api.disconnect(); });25});