Skip to content

test(core): cover nullsToUndefined and nullsToUndefinedShallow - #3619

Open
mariazuheros wants to merge 1 commit into
teableio:developfrom
mariazuheros:test/nulls-to-undefined
Open

test(core): cover nullsToUndefined and nullsToUndefinedShallow#3619
mariazuheros wants to merge 1 commit into
teableio:developfrom
mariazuheros:test/nulls-to-undefined

Conversation

@mariazuheros

Copy link
Copy Markdown

Adds unit tests for the null-to-undefined converters in packages/core, which were previously untested.

Covers both functions:

  • nullsToUndefined: top level null and undefined, primitives left untouched, null values inside plain objects, recursion into nested objects, arrays left intact (their nulls survive since only plain objects are traversed), and the returned reference being the same mutated object.
  • nullsToUndefinedShallow: top level null, top level replacement only, and no recursion into nested objects.

Tests follow the existing convert test style (vitest globals, colocated in tests).

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants