UNPKG

@shadman-a/homebridge-my-ac

Version:

A Homebridge plugin for controlling/monitoring LG ThinQ devices via LG ThinQ platform.

35 lines 1.35 kB
import { Gateway } from './Gateway.js'; import { describe, test, expect, beforeEach } from '@jest/globals'; describe('Gateway', () => { const mockData = { empTermsUri: 'https://example.com/terms', empSpxUri: 'https://example.com/login', thinq2Uri: 'https://example.com/thinq2', thinq1Uri: 'https://example.com/thinq1', countryCode: 'US', languageCode: 'en-US', }; let gateway; beforeEach(() => { gateway = new Gateway(mockData); }); test('should return the correct emp_base_url', () => { expect(gateway.emp_base_url).toBe('https://example.com/terms/'); }); test('should return the correct login_base_url', () => { expect(gateway.login_base_url).toBe('https://example.com/login/'); }); test('should return the correct thinq2_url', () => { expect(gateway.thinq2_url).toBe('https://example.com/thinq2/'); }); test('should return the correct thinq1_url', () => { expect(gateway.thinq1_url).toBe('https://example.com/thinq1/'); }); test('should return the correct country_code', () => { expect(gateway.country_code).toBe('US'); }); test('should return the correct language_code', () => { expect(gateway.language_code).toBe('en-US'); }); }); //# sourceMappingURL=Gateway.spec.js.map