beforeAll(async () => { dbus = createSystemBus() await dbus.requestName(TEST_NAME) iface = new TestInterface(TEST_IFACE) dbus.export(TEST_OBJECT, iface) })
function createBluetooth () { const dbus = createSystemBus() const bluetooth = new Bluetooth(dbus) const destroy = () => dbus.disconnect() return { bluetooth, destroy } }