orbitdb/test/re-exports.test.js
2022-12-30 03:07:01 +00:00

23 lines
726 B
JavaScript

import assert from 'assert'
import OrbitDB from '../src/OrbitDB.js'
const AccessControllers = OrbitDB.AccessControllers
const Identities = OrbitDB.Identities
const Keystore = OrbitDB.Keystore
describe('Re-exports', function () {
it('Successfully re-exports AccessControllers', () => {
assert.strictEqual(typeof AccessControllers, 'function')
assert.strictEqual(typeof AccessControllers.addAccessController, 'function')
})
it('Successfully re-exports Identities', () => {
assert.strictEqual(typeof Identities, 'function')
assert.strictEqual(typeof Identities.createIdentity, 'function')
})
it('Successfully re-exports Keystore', () => {
assert.strictEqual(typeof Keystore, 'function')
})
})