UNPKG

homebridge-freeathome-local-api

Version:

Control your free@home setup using the local API provided by your System Access Point

12 lines (10 loc) 391 B
import { API, HomebridgeAPI } from "homebridge/api"; describe("Homebridge entrypoint", () => { it("should successfully register the plugin", (done) => { const api = new HomebridgeAPI(); api.once("registerPlatform", () => done()); import("../src/index.js") .then((fn: { default: (api: API) => void }) => fn.default(api)) .catch((reason) => fail(reason)); }); });