UNPKG

@homebridge-plugins/homebridge-august

Version:

The August plugin allows you to access your August & Yale device(s) from HomeKit.

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