UNPKG

@homebridge-plugins/homebridge-cloudflared-tunnel

Version:

The Cloudflared Tunnel plugin allows you to run a Cloudflare-Tunnel for exposing your homebridge instance for remote access.

14 lines 572 B
import { describe, expect, it, vi } from 'vitest'; import registerPlatform from './index.js'; import { CloudflaredTunnelPlatform } from './platform.js'; import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js'; describe('index.ts', () => { it('should register the platform with homebridge', () => { const api = { registerPlatform: vi.fn(), }; registerPlatform(api); expect(api.registerPlatform).toHaveBeenCalledWith(PLUGIN_NAME, PLATFORM_NAME, CloudflaredTunnelPlatform); }); }); //# sourceMappingURL=index.test.js.map