const assert = require('assert');
const {
  connectionStatus,
} = require('../connection-status');

assert.strictEqual(
  connectionStatus({ connectionsEnabled: true, connectedCount: 0 }),
  'Ready'
);
assert.strictEqual(
  connectionStatus({ connectionsEnabled: true, connectedCount: 1 }),
  'Connected to 1 Mac'
);
assert.strictEqual(
  connectionStatus({ connectionsEnabled: true, connectedCount: 3 }),
  'Connected to 3 Macs'
);
assert.strictEqual(
  connectionStatus({ connectionsEnabled: false, connectedCount: 3 }),
  'Paused'
);

console.log('menu bar status tests passed');
