mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-04 02:34:52 +00:00
58a94d0489
feat(styles): create global styles entry point and organize global styles feat(styles): implement base HTML element styles and utility classes for flexbox feat(styles): establish layout, position, spacing, and text utility classes feat(styles): introduce mixins for animations, cards, dialogs, flexbox, grid, and responsive design test(quick_guide): add component and metadata validation tests for quick_guide package test(ui_level6): implement metadata validation tests for ui_level6 package
20 lines
609 B
Lua
20 lines
609 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)
|