Files
metabuilder/packages/lua_test/seed/scripts/assertions.lua
JohnDoe6345789 0f69e33d9b feat: Implement Slider component with enhanced features and styles
- 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.
2025-12-30 11:01:44 +00:00

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