orbitdb/test/re-exports.test.js
2020-05-15 10:28:17 -04:00

21 lines
658 B
JavaScript

'use strict'
const assert = require('assert')
const { AccessControllers, Identities, Keystore } = require('../src/OrbitDB')
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')
})
})