@homebridge-plugins/homebridge-roomba
Version:
homebridge-plugin for Roomba devices
14 lines • 520 B
JavaScript
import { describe, expect, it, vi } from 'vitest';
import registerPlatform from './index.js';
import RoombaPlatform from './platform.js';
import { PLATFORM_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(PLATFORM_NAME, RoombaPlatform);
});
});
//# sourceMappingURL=index.test.js.map