mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
31 lines
971 B
Lua
31 lines
971 B
Lua
-- Metadata validation tests for admin_dialog package
|
|
-- Uses lua_test framework
|
|
|
|
describe("Admin Dialog Package Metadata", function()
|
|
local metadata = load_cases("metadata.json")
|
|
|
|
it("should have valid package structure", function()
|
|
expect(metadata.packageId).toBe("admin_dialog")
|
|
expect(metadata.name).toBe("Admin Dialog")
|
|
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)
|
|
end)
|