12345import { ApiPromise } from '@polkadot/api';6import BN from 'bn.js';7import chai from 'chai';8import chaiAsPromised from 'chai-as-promised';9import privateKey from './substrate/privateKey';10import { default as usingApi, submitTransactionAsync, submitTransactionExpectFailAsync } from './substrate/substrate-api';11import {createCollectionExpectSuccess, destroyCollectionExpectSuccess} from './util/helpers';1213chai.use(chaiAsPromised);14const expect = chai.expect;1516interface ITokenDataType {17 Owner: number[];18 ConstData: number[];19 VariableData: number[];20}2122describe('Integration Test approve(spender, collection_id, item_id, amount):', () => {23 it('Execute the extrinsic and check approvedList', async () => {24 await usingApi(async (api: ApiPromise) => {2526 });27 });28});2930describe('Negative Integration Test approve(spender, collection_id, item_id, amount):', () => {31 it('Approve for a collection that does not exist', async () => {32 await usingApi(async (api: ApiPromise) => {3334 });35 });3637 it('Approve for a collection that was destroyed', async () => {38 await usingApi(async (api: ApiPromise) => {3940 });41 });4243 it('Approve transfer of a token that does not exist', async () => {44 await usingApi(async (api: ApiPromise) => {4546 });47 });4849 it('Approve using the address that does not own the approved token', async () => {50 await usingApi(async (api: ApiPromise) => {5152 });53 });5455 it('Remove approval by using 0 amount', async () => {56 await usingApi(async (api: ApiPromise) => {5758 });59 });60});