123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 'use strict'
- const expect = require('chai').expect
- const { RuntimeApi } = require('@joystream/storage-runtime-api')
- describe('Assets', () => {
- let api
- before(async () => {
- api = await RuntimeApi.create()
- await api.identities.loadUnlock('test/data/edwards_unlocked.json')
- })
- it('returns DataObjects for a content ID', async () => {
- const obj = await api.assets.getDataObject('foo')
- expect(obj.isNone).to.be.true
- })
- it('can check the liaison for a DataObject', async () => {
- expect(async () => {
- await api.assets.checkLiaisonForDataObject('foo', 'bar')
- }).to.throw
- })
-
- it('can accept content')
- it('can reject content')
- it('can create a storage relationship for content')
- it('can toggle a storage relationship to ready state')
- })
|