inhabitants.test.js 447 B

123456789101112
  1. const { eq, ok } = require('../../helpers/assert');
  2. const { makeNetwork, makePeer } = require('../../helpers/setup');
  3. describe('inhabitants: list', (t) => {
  4. t('lists peers in the network', async () => {
  5. const net = makeNetwork();
  6. const A = makePeer(net); const B = makePeer(net); A.setActor();
  7. const list = await A.use('inhabitants').listInhabitants({ filter: 'all', includeInactive: true });
  8. ok(Array.isArray(list));
  9. });
  10. });