/test/e2e/routing.test.ts
โ
5 โ 0 โฑ๏ธ 0.00s
โ
should have router methods available
Duration: 0.6254170000000272ms
What does this test verify?
Verifies that the router object has push, replace, and back methods.
โ
should have route information available
Duration: 0.10195800000002464ms
What does this test verify?
Ensures that route information includes path, params, and query.
โ
should have default route path
Duration: 0.08320800000001327ms
What does this test verify?
Tests that the default route path is set to '/'.
โ
should have empty params by default
Duration: 0.20924999999999727ms
What does this test verify?
Verifies that route params are empty by default.
โ
should have empty query by default
Duration: 0.09970799999996416ms
What does this test verify?
Verifies that route query is empty by default.
/test/e2e/runtime-config.test.ts
โ
4 โ 0 โฑ๏ธ 0.00s
โ
should return runtime config object
Duration: 0.5617910000000279ms
What does this test verify?
Tests that useRuntimeConfig returns a defined configuration object.
โ
should have public configuration
Duration: 0.09062499999998863ms
What does this test verify?
Verifies that the config has a public property with site settings.
โ
should have correct site URL
Duration: 0.08762500000000273ms
What does this test verify?
Ensures the site URL is correctly set in the runtime configuration.
โ
should have valid URL format
Duration: 0.09304099999997106ms
What does this test verify?
Validates that the site URL follows proper URL format.
/test/integration/state-management.test.ts
โ
15 โ 0 โฑ๏ธ 0.00s
โ
should maintain independent state for each composable
Duration: 1.9540419999999585ms
What does this test verify?
Tests that multiple composables maintain separate, independent state.
โ
should allow independent updates without affecting other states
Duration: 0.11929100000003245ms
What does this test verify?
Ensures updates to one composable don't affect others.
โ
should handle rapid state changes
Duration: 0.1450420000000463ms
What does this test verify?
Tests performance and stability under rapid state mutations.
โ
should handle concurrent toggle operations
Duration: 0.13866600000000062ms
What does this test verify?
Tests managing multiple toggle states simultaneously.
โ
should persist counter state across multiple calls
Duration: 0.0831670000000031ms
What does this test verify?
Verifies counter state persistence across component lifecycle.
โ
should persist color state across multiple calls
Duration: 0.067875000000015ms
What does this test verify?
Verifies color state persistence across component lifecycle.
โ
should persist toggle states across multiple calls
Duration: 0.09066699999999628ms
What does this test verify?
Verifies toggle states persistence across component lifecycle.
โ
should handle state reset scenario
Duration: 0.06545899999997573ms
What does this test verify?
Tests resetting all states back to defaults.
โ
should handle state updates in sequence
Duration: 0.11687499999999318ms
What does this test verify?
Tests sequential state updates.
โ
should handle conditional state updates
Duration: 0.06299999999998818ms
What does this test verify?
Tests state updates based on conditional logic.
โ
should handle state-dependent logic
Duration: 0.0544999999999618ms
What does this test verify?
Tests logic that depends on the current state values.
โ
should handle boundary values for counter
Duration: 0.055499999999995ms
What does this test verify?
Tests extreme numeric values (MAX_SAFE_INTEGER, MIN_SAFE_INTEGER).
โ
should handle special string values for color
Duration: 0.07408400000002757ms
What does this test verify?
Tests special CSS color values like 'transparent', 'inherit'.
โ
should handle rapid toggle operations
Duration: 0.04520800000000236ms
What does this test verify?
Tests rapid toggling performance and consistency.
โ
should maintain type consistency
Duration: 0.07841600000000426ms
What does this test verify?
Ensures state types remain consistent throughout operations.
/test/unit/states.test.ts
โ
27 โ 0 โฑ๏ธ 0.00s
โ
should initialize with default value of 0
Duration: 0.9787089999999807ms
What does this test verify?
Verifies that the useCounter composable initializes with a default value of 0.
โ
should be a reactive ref
Duration: 0.38675000000000637ms
What does this test verify?
Ensures that state composables return reactive references that can be used in Vue components.
โ
should persist state across multiple calls
Duration: 0.06558300000000372ms
What does this test verify?
Confirms that state is maintained across multiple composable invocations, simulating component lifecycle.
โ
should handle negative values
Duration: 0.0610409999999888ms
What does this test verify?
Tests that the counter can store and retrieve negative numbers correctly.
โ
should handle large numbers
Duration: 0.10308300000002646ms
What does this test verify?
Ensures the counter can handle large numeric values without overflow or precision loss.
โ
should increment correctly
Duration: 0.08495799999997189ms
What does this test verify?
Verifies that the counter can be incremented using the ++ operator.
โ
should initialize with default value of 'pink'
Duration: 0.06229200000001356ms
What does this test verify?
Verifies that the useColor composable initializes with a default value of 'pink'.
โ
should be a reactive ref
Duration: 0.12091699999996308ms
What does this test verify?
Ensures that state composables return reactive references that can be used in Vue components.
โ
should persist state across multiple calls
Duration: 0.17225000000001955ms
What does this test verify?
Confirms that state is maintained across multiple composable invocations, simulating component lifecycle.
โ
should handle hex color values
Duration: 0.10470800000001645ms
What does this test verify?
Tests that the color state can store hex color format (#FF5733).
โ
should handle rgb color values
Duration: 0.04645800000002964ms
What does this test verify?
Tests that the color state can store RGB color format (rgb(255, 0, 0)).
โ
should handle empty string
Duration: 0.039750000000026375ms
What does this test verify?
Ensures the color state can handle edge cases like empty strings.
โ
should initialize with default value of false
Duration: 0.04487499999999045ms
What does this test verify?
Verifies that toggle composables (useNavToggle, useTranslateToggle) initialize with a default value of false.
โ
should be a reactive ref
Duration: 0.054791000000022905ms
What does this test verify?
Ensures that state composables return reactive references that can be used in Vue components.
โ
should persist state across multiple calls
Duration: 0.038334000000020296ms
What does this test verify?
Confirms that state is maintained across multiple composable invocations, simulating component lifecycle.
โ
should toggle between true and false
Duration: 0.09441700000002129ms
What does this test verify?
Tests the ability to toggle the navigation state between open and closed.
โ
should support boolean negation
Duration: 0.05029199999995626ms
What does this test verify?
Verifies that the toggle can be flipped using boolean negation operator.
โ
should initialize with the provided value
Duration: 0.045000000000015916ms
What does this test verify?
Tests that useSimpleCounter accepts and uses the provided initial value.
โ
should handle zero as initial value
Duration: 0.03633299999995643ms
What does this test verify?
Ensures useSimpleCounter works correctly when initialized with zero.
โ
should handle negative values
Duration: 0.03558299999997416ms
What does this test verify?
Tests that the counter can store and retrieve negative numbers correctly.
โ
should be reactive
Duration: 0.051333999999997104ms
What does this test verify?
Confirms that useSimpleCounter returns a reactive reference.
โ
should handle decimal values
Duration: 0.037041999999985364ms
What does this test verify?
Tests that the simple counter can handle floating-point numbers.
โ
should initialize with default value of false
Duration: 0.04308399999996482ms
What does this test verify?
Verifies that toggle composables (useNavToggle, useTranslateToggle) initialize with a default value of false.
โ
should be a reactive ref
Duration: 0.04929199999997991ms
What does this test verify?
Ensures that state composables return reactive references that can be used in Vue components.
โ
should persist state across multiple calls
Duration: 0.037082999999995536ms
What does this test verify?
Confirms that state is maintained across multiple composable invocations, simulating component lifecycle.
โ
should toggle between states
Duration: 0.04470800000001418ms
What does this test verify?
Tests the ability to toggle the translation feature on and off.
โ
should work independently from navToggle
Duration: 0.04579099999995151ms
What does this test verify?
Ensures that translation toggle state is independent from navigation toggle state.
/test/unit/useCurrentPage.test.ts
โ
25 โ 0 โฑ๏ธ 0.01s
โ
should return an object with slug and msg properties
Duration: 0.816332999999986ms
What does this test verify?
Verifies that useCurrentPage returns an object containing both slug and msg properties as expected.
โ
should log to console when called
Duration: 0.27912500000002183ms
What does this test verify?
Ensures that useCurrentPage logs a message to the console when invoked, which may be used for debugging purposes.
โ
should return consistent data structure
Duration: 0.2874999999999659ms
What does this test verify?
Verifies that useCurrentPage returns the same structure on every call.
โ
should return the provided slug
Duration: 0.14008300000000418ms
What does this test verify?
Tests that the function returns the exact slug value that was passed as input.
โ
should have slug as a string
Duration: 0.0685420000000363ms
What does this test verify?
Tests that the slug property is of type string.
โ
should have msg as a string
Duration: 0.06983299999996007ms
What does this test verify?
Tests that the msg property is of type string.
โ
should have expected message content
Duration: 0.051791999999977634ms
What does this test verify?
Verifies that the msg property contains the expected greeting message.
โ
should return the same structure on multiple calls
Duration: 0.5017500000000155ms
What does this test verify?
Ensures consistency across multiple invocations of useCurrentPage.
โ
should not return undefined or null
Duration: 0.17799999999999727ms
What does this test verify?
Validates that useCurrentPage always returns a valid object.
โ
should be an object
Duration: 0.059916999999984455ms
What does this test verify?
Confirms that the return value is an object type.
โ
should log with specific format
Duration: 0.3012499999999818ms
What does this test verify?
Verifies that console logging follows a specific format ('in composable function').
โ
should not throw errors during execution
Duration: 0.2681249999999977ms
What does this test verify?
Ensures useCurrentPage executes without throwing errors.
โ
should handle multiple rapid calls
Duration: 3.26724999999999ms
What does this test verify?
Tests resilience under rapid successive calls with different slugs.
โ
should maintain data integrity
Duration: 0.114750000000015ms
What does this test verify?
Ensures that original data is not mutated during operations.
โ
should handle empty slug
Duration: 0.05750000000000455ms
What does this test verify?
Tests that the composable can handle empty string slugs.
โ
should handle special characters in slug
Duration: 0.09629200000000537ms
What does this test verify?
Tests handling of special characters and symbols in slug values.
โ
should handle long slug values
Duration: 0.05462499999998727ms
What does this test verify?
Tests performance and stability with very long slug strings.
โ
should work alongside other composables
Duration: 0.10562500000003183ms
What does this test verify?
Tests integration with other composables in the same context.
โ
should return serializable data
Duration: 0.08862499999997908ms
What does this test verify?
Verifies that the returned data can be serialized to JSON.
โ
should handle object spreading
Duration: 0.04470899999995481ms
What does this test verify?
Tests that the returned object can be spread using JavaScript spread operator.
โ
should handle destructuring
Duration: 0.04150000000004184ms
What does this test verify?
Tests that the returned object can be destructured properly.
โ
should handle numeric slug values
Duration: 0.07125000000002046ms
What does this test verify?
Tests handling of slugs that contain only numbers.
โ
should handle slug with hyphens
Duration: 0.047916999999984ms
What does this test verify?
Tests proper handling of hyphenated slug values.
โ
should handle slug with underscores
Duration: 0.0404999999999518ms
What does this test verify?
Tests proper handling of underscored slug values.
โ
should handle slug with mixed case
Duration: 0.03704200000004221ms
What does this test verify?
Tests proper handling of mixed-case slug values.
/test/unit/utils.test.ts
โ
17 โ 0 โฑ๏ธ 0.01s
โ
should convert string to slug format
Duration: 0.676667000000009ms
What does this test verify?
Tests string-to-slug conversion for URL-friendly strings.
โ
should capitalize first letter
Duration: 0.38162499999998545ms
What does this test verify?
Tests capitalization of the first letter in a string.
โ
should truncate long strings
Duration: 0.375583000000006ms
What does this test verify?
Tests string truncation with ellipsis for long text.
โ
should filter undefined values
Duration: 0.3660419999999931ms
What does this test verify?
Tests removal of undefined values from arrays.
โ
should remove duplicates from array
Duration: 0.20520800000002737ms
What does this test verify?
Tests deduplication of array elements.
โ
should chunk array into smaller arrays
Duration: 0.11779200000000856ms
What does this test verify?
Tests splitting arrays into fixed-size chunks.
โ
should deep clone objects
Duration: 0.07299999999997908ms
What does this test verify?
Tests deep cloning of nested objects to avoid reference issues.
โ
should check if object is empty
Duration: 0.06187499999998636ms
What does this test verify?
Tests detection of empty objects.
โ
should merge objects
Duration: 0.15774999999996453ms
What does this test verify?
Tests merging of two objects with property override.
โ
should format date to string
Duration: 0.2823750000000018ms
What does this test verify?
Tests date-to-string formatting.
โ
should check if date is valid
Duration: 0.07183300000002646ms
What does this test verify?
Tests validation of Date objects.
โ
should validate URL format
Duration: 0.13420899999999847ms
What does this test verify?
Tests URL validation using URL constructor.
โ
should extract domain from URL
Duration: 0.23279100000002018ms
What does this test verify?
Tests extraction of hostname from URL string.
โ
should build query string from object
Duration: 0.27995799999996507ms
What does this test verify?
Tests building URL query strings from objects.
โ
should format number with commas
Duration: 9.42954199999997ms
What does this test verify?
Tests numeric formatting with thousands separators.
โ
should clamp number between min and max
Duration: 0.1700829999999769ms
What does this test verify?
Tests clamping numbers to a specified range.
โ
should check if number is in range
Duration: 0.2579170000000204ms
What does this test verify?
Tests whether a number falls within a specified range.