Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TestGru] Add unit test for src/utils/string.ts #7

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

grutest-dev-zsh[bot]
Copy link

Trigger Info

Trigger Type Triggered By Source File Assignment
Manual zthreefires src/utils/string.ts Detail

Summary

This PR introduces the following changes:

  1. Gitignore Updates:

    • Added .vite, dist, and *.tsbuildinfo to .gitignore to exclude these files from version control.
  2. Unit Tests for Utility Functions:

    • Added a new test file string.gru.test.ts under src/utils/.

    • Implemented unit tests for the following utility functions:

      • toSnakeCase: Tests include scenarios for space-separated strings, mixed case strings, empty strings, and strings with consecutive spaces.

      • isObject: Tests cover plain objects, null, undefined, primitives, arrays, and functions.

Tip

You can @grutest-dev-zsh and leave your feedback. TestGru will make adjustments based on your input

Tip

You can @grutest-dev-zsh rebase to rebase the PR.

Tip

You can @grutest-dev-zsh redo to reset or rebase before redoing the PR.

Tip

To modify the test code yourself, click here Edit Test Code

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.

1 participant