Skip to content

test: add unit tests for object and clone helpers#6819

Merged
Leizhenpeng merged 1 commit into
ChatGPTNextWeb:mainfrom
TIANQIAN1238:feat-test-object-utils
Jul 6, 2026
Merged

test: add unit tests for object and clone helpers#6819
Leizhenpeng merged 1 commit into
ChatGPTNextWeb:mainfrom
TIANQIAN1238:feat-test-object-utils

Conversation

@TIANQIAN1238

Copy link
Copy Markdown
Contributor

💻 变更类型 | Change Type

  • test

🔀 变更说明 | Description of Change

Adds test/object-utils.test.ts covering pure helpers that had no coverage:

  • omit / pick (app/utils/object.ts) — including that they don't mutate their input.
  • deepClone / ensure (app/utils/clone.ts) — deepClone copies nested structures by value; ensure is true only when all listed keys have non-empty values.

No production code is modified.

🤖 Generated with Claude Code

Cover omit/pick (app/utils/object.ts) and deepClone/ensure
(app/utils/clone.ts), including that omit/pick do not mutate their
input and that deepClone copies nested structures by value.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Leizhenpeng
Leizhenpeng merged commit 9f658d8 into ChatGPTNextWeb:main Jul 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants