Files
metabuilder/packages/ui_dialogs/seed/scripts/tests/components.test.lua
JohnDoe6345789 2d65639c13 Add test cases and metadata validation for various packages
- 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.
2025-12-30 01:48:35 +00:00

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)