diff --git a/test/unit-tests/modules/BuiltinsApi-test.ts b/test/unit-tests/modules/BuiltinsApi-test.ts new file mode 100644 index 0000000000..38ddec0c56 --- /dev/null +++ b/test/unit-tests/modules/BuiltinsApi-test.ts @@ -0,0 +1,17 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE files in the repository root for full details. +*/ + +import { ElementWebBuiltinsApi } from "../../../src/modules/BuiltinsApi"; + +describe("ElementWebBuiltinsApi", () => { + it("returns the RoomView component thats been set", () => { + const builtinsApi = new ElementWebBuiltinsApi(); + const sentinel = {}; + builtinsApi.setRoomViewComponent(sentinel as any); + expect(builtinsApi.getRoomViewComponent()).toBe(sentinel); + }); +});