UNPKG

@homebridge-plugins/homebridge-plugin-update-check

Version:
34 lines 1.16 kB
import { describe, expect, it } from 'vitest'; describe('pluginUpdatePlatformConfig', () => { it('should allow valid platform name and identifier', () => { const config = { platform: 'ExamplePlatform', }; expect(config.platform).toBe('ExamplePlatform'); }); it('should allow optional forceNcu property', () => { const config = { platform: 'ExamplePlatform', forceNcu: true, }; expect(config.forceNcu).toBe(true); }); it('should allow optional sensorType property', () => { const config = { platform: 'ExamplePlatform', sensorType: 'temperature', }; expect(config.sensorType).toBe('temperature'); }); it('should allow all properties to be set', () => { const config = { platform: 'ExamplePlatform', forceNcu: true, sensorType: 'humidity', }; expect(config.platform).toBe('ExamplePlatform'); expect(config.forceNcu).toBe(true); expect(config.sensorType).toBe('humidity'); }); }); //# sourceMappingURL=configTypes.test.js.map