@homebridge-plugins/homebridge-resideo
Version:
The Resideo plugin allows you to access your Resideo device(s) from HomeKit.
13 lines • 546 B
JavaScript
import { describe, expect, it, vi } from 'vitest';
import registerPlatform from './index.js';
import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';
describe('index.ts', () => {
it('should register the platform with homebridge using a proxy constructor', () => {
const apiMock = {
registerPlatform: vi.fn(),
};
registerPlatform(apiMock);
expect(apiMock.registerPlatform).toHaveBeenCalledWith(PLUGIN_NAME, PLATFORM_NAME, expect.any(Function));
});
});
//# sourceMappingURL=index.test.js.map