mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-20 17:43:36 +00:00
* WIP new dialog use states * WIP add zwave rebuild network routes details * Enhance Z-Wave JS rebuild network routes dialog with loading indicators and improved progress handling * Remove hass param from `domain-icon` * Remove unneeded @states * List more compact * fix prettier * fix tests * Rename device context to getDeviceArea
14 lines
546 B
TypeScript
14 lines
546 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { isComponentLoaded } from "../../../src/common/config/is_component_loaded";
|
|
import type { HomeAssistant } from "../../../src/types";
|
|
|
|
describe("isComponentLoaded", () => {
|
|
it("should return if the component is loaded", () => {
|
|
const hass = {
|
|
config: { components: ["test_component"] },
|
|
} as unknown as HomeAssistant;
|
|
expect(isComponentLoaded(hass.config, "test_component")).toBe(true);
|
|
expect(isComponentLoaded(hass.config, "other_component")).toBe(false);
|
|
});
|
|
});
|