mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
20 lines
628 B
Lua
20 lines
628 B
Lua
-- Component validation tests for quick_guide package
|
|
local components = load_cases("components.json")
|
|
|
|
describe("Quick Guide Components", function()
|
|
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)
|