mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 15:24:56 +00:00
- Created metadata cases and component structure tests for form_builder, forum_forge, irc_webchat, nav_menu, notification_center, schema_editor, screenshot_analyzer, social_hub, stream_cast, ui_auth, ui_dialogs, and ui_footer packages. - Implemented validation for package ID format, version format, required fields, and expected components. - Added Lua test scripts to validate component structures and metadata integrity. - Ensured all packages adhere to the defined structure and dependencies.
22 lines
641 B
Lua
22 lines
641 B
Lua
-- Component validation tests for ui_dialogs package
|
|
-- Uses lua_test framework
|
|
|
|
describe("UI Dialogs Components", function()
|
|
local components = load_cases("components.json")
|
|
|
|
it("should be a valid array", function()
|
|
expect(components).toBeType("table")
|
|
end)
|
|
|
|
it("should have valid component structure if components exist", function()
|
|
if #components > 0 then
|
|
for _, component in ipairs(components) do
|
|
expect(component.id).toBeTruthy()
|
|
expect(component.type).toBeTruthy()
|
|
expect(component.id).toBeType("string")
|
|
expect(component.type).toBeType("string")
|
|
end
|
|
end
|
|
end)
|
|
end)
|