git.delta.rocks / unique-network / refs/commits / 10c5b4f031f0

difftreelog

source

tests/src/setSchemaVersion.test.ts1.1 KiBsourcehistory
1import { BigNumber } from 'bignumber.js';2import chai from 'chai';3import chaiAsPromised from 'chai-as-promised';4import usingApi, { submitTransactionAsync } from './substrate/substrate-api';56chai.use(chaiAsPromised);7const expect = chai.expect;89describe('setSchemaVersion positive', () => {10  it('execute setSchemaVersion with image url and unique json ', async () => {11    await usingApi(async api => {1213    });14  });1516  it('validate schema version with just entered data', async () => {17    await usingApi(async api => {1819    });20  });21});2223describe('setSchemaVersion negative', () => {24  it('execute setSchemaVersion for not exists collection', async () => {25    await usingApi(async api => {2627    });28  });2930  it('execute setSchemaVersion for deleted collection', async () => {31    await usingApi(async api => {3233    });34  });3536  it('execute setSchemaVersion with not correct image url', async () => {37    await usingApi(async api => {3839    });40  });4142  it('execute setSchemaVersion with not correct unique', async () => {43    await usingApi(async api => {4445    });46  });47});