UNPKG

@homebridge-plugins/homebridge-resideo

Version:

The Resideo plugin allows you to access your Resideo device(s) from HomeKit.

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