test : added unit tests for sorting generators, API errors, profile utils, rate limits, and random utilities - #13
Open
tmdeveloper007 wants to merge 1 commit into
Conversation
…s, rate limits, and random utilities - __tests__/sortingGenerators.test.js: 37 tests for all 6 sorting algorithm generators (bubble, selection, insertion, merge, quick, heap) - __tests__/apiErrors.test.js: 17 tests for ApiError subclasses (ApiError, AuthError, RateLimitError, ValidationError, ConfigError) - __tests__/profileUtils.test.js: 49 tests for profile sanitization and validation functions - __tests__/rateLimits.test.js: 7 tests for rate limit configuration constants - __tests__/random.test.js: 9 tests for cryptographically secure code generation All 119 new tests pass (npm run test:ui). Lint green. Build OOM pre-existing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of What Has Been Done:
Added 119 new unit tests across 5 test files covering utility functions in the AlgoBuddy codebase that previously had no test coverage.
Changes Made:
Impact it Made:
Note: Please assign this PR to the tmdeveloper007 account.