git.delta.rocks / unique-network / refs/commits / c2ed35549db9

difftreelog

source

tests/src/rmrk/createCollection.test.ts719 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(() => { api.disconnect(); });25});