@homebridge-plugins/homebridge-noip
Version:
The No-IP plugin allows you to update your No-IP hostname(s) for your homebridge instance.
14 lines • 554 B
JavaScript
import { describe, expect, it, vi } from 'vitest';
import registerPlatform from './index.js';
import { NoIPPlatform } 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, NoIPPlatform);
});
});
//# sourceMappingURL=index.test.js.map