mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
- Added a new Slider component with support for controlled and uncontrolled values, marks, value labels, and customizable styles. - Introduced new props for Slider including min, max, step, orientation, color, size, and disabled state. - Implemented internal state management for value and visibility of value labels. - Created SCSS styles for the Slider component, supporting various orientations, sizes, and color variants. - Added accessibility features to the Slider component, including ARIA attributes. chore: Introduce assertion utilities and refactor assertion functions - Created standalone assertion functions (assertTrue, assertFalse, assertEqual, etc.) for better test readability. - Developed assertion utilities for error handling and value stringification. - Refactored existing assertion functions to utilize the new utility functions for improved maintainability. - Implemented a chainable expect() function with various matchers for enhanced testing capabilities.
28 lines
845 B
Lua
28 lines
845 B
Lua
-- Assertion functions facade
|
|
-- Re-exports all assertion modules for backward compatibility
|
|
--
|
|
-- Split into focused modules:
|
|
-- assert_utils.lua - Helper functions (stringify, deepEqual, assertionError)
|
|
-- expect.lua - expect() with chainable matchers
|
|
-- assert.lua - Standalone assertions (assertTrue, assertEqual, etc.)
|
|
|
|
local expect_module = require("expect")
|
|
local assert_module = require("assert")
|
|
|
|
---@class AssertionsModule
|
|
local M = {}
|
|
|
|
-- Re-export expect
|
|
M.expect = expect_module.expect
|
|
|
|
-- Re-export standalone assertions
|
|
M.assertTrue = assert_module.assertTrue
|
|
M.assertFalse = assert_module.assertFalse
|
|
M.assertEqual = assert_module.assertEqual
|
|
M.assertNotEqual = assert_module.assertNotEqual
|
|
M.assertNil = assert_module.assertNil
|
|
M.assertNotNil = assert_module.assertNotNil
|
|
M.fail = assert_module.fail
|
|
|
|
return M
|