@homebridge-plugins/homebridge-smarthq
Version:
The SmartHQ plugin allows you to interact with SmartHQ Devices in HomeKit and with Siri.
14 lines • 560 B
JavaScript
import { describe, expect, it, vi } from 'vitest';
import registerPlatform from './index.js';
import { SmartHQPlatform } 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, SmartHQPlatform);
});
});
//# sourceMappingURL=index.test.js.map