UNPKG

ipfs-coord

Version:

A JS library for helping IPFS peers coordinate, find a common interest, and stay connected around that interest.

31 lines (24 loc) 638 B
/* Unit tests for the main Controllers index.js file. */ // npm libraries const assert = require('chai').assert // Local libraries const Controllers = require('../../../lib/controllers') describe('#index.js-Controllers', () => { let uut describe('#constructor', () => { it('should throw an error if adapters is not included', () => { try { uut = new Controllers() assert.fail('Unexpected code path') console.log(uut) } catch (err) { assert.include( err.message, 'Instance of adapters required when instantiating Controllers' ) } }) }) })