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.
35 lines
1.0 KiB
Lua
35 lines
1.0 KiB
Lua
-- Metadata validation tests for codegen_studio package
|
|
-- Uses lua_test framework
|
|
|
|
describe("Codegen Studio Package Metadata", function()
|
|
local metadata = load_cases("metadata.json")
|
|
|
|
it("should have valid package structure", function()
|
|
expect(metadata.packageId).toBe("codegen_studio")
|
|
expect(metadata.name).toBe("Codegen Studio")
|
|
expect(metadata.version).toBeTruthy()
|
|
expect(metadata.description).toBeTruthy()
|
|
end)
|
|
|
|
it("should have correct package ID format", function()
|
|
expect(metadata.packageId).toMatch("^[a-z_]+$")
|
|
end)
|
|
|
|
it("should have semantic version", function()
|
|
expect(metadata.version).toMatch("^%d+%.%d+%.%d+$")
|
|
end)
|
|
|
|
it("should have exports defined", function()
|
|
expect(metadata.exports).toBeTruthy()
|
|
expect(metadata.exports.components).toBeType("table")
|
|
end)
|
|
|
|
it("should have dependencies array", function()
|
|
expect(metadata.dependencies).toBeType("table")
|
|
end)
|
|
|
|
it("should require minLevel 5", function()
|
|
expect(metadata.minLevel).toBe(5)
|
|
end)
|
|
end)
|