import { expect } from "chai" ; import { ui5NodeToFQN } from "../../src/api" ; import { buildUI5Class , buildUI5Namespace , } from "@ui5-language-assistant/test-utils" ; describe ( "The @ui5-language-assistant/logic-utils <ui5NodeToFQN> function" , ( ) => { const sapNs = buildUI5Namespace ( { name : "sap" } ) ; const uiNs = buildUI5Namespace ( { name : "ui" , parent : sapNs } ) ; const coreNs = buildUI5Namespace ( { name : "core" , parent : uiNs } ) ; const control = buildUI5Class ( { name : "Control" , parent : coreNs , library : "sap.ui.core" , } ) ; it ( "will return the fully qualified name of a UI5 Node" , ( ) => { const controlFqn = ui5NodeToFQN ( control ) ; expect ( controlFqn ) . to . eql ( "sap.ui.core.Control" ) ; } ) ; } ) ;