mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
- 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.
22 lines
649 B
Lua
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)
|