Files
metabuilder/packages/codegen_studio/seed/scripts/tests/components.test.lua
JohnDoe6345789 94fe1c83b7 Refactor audit log components and add validation tests
- Removed the AuditLogViewer, Filters, and LogTable components.
- Added new component definitions in components.json for Audit Stats Cards and Audit Log Viewer.
- Implemented scripts for stats calculation, log formatting, and applying filters.
- Created validation tests for the arcade_lobby, codegen_studio, data_table, form_builder, forum_forge, and irc_webchat packages.
- Updated index.json to include new audit_log and quick_guide packages with their respective metadata.
2025-12-30 01:43:40 +00:00

22 lines
649 B
Lua

-- Component validation tests for codegen_studio package
-- Uses lua_test framework
describe("Codegen Studio 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)