nodejs.dev
nodejs.dev copied to clipboard
added unit tests for util functions
Description
Added some more unit test for our util functions.
Related Issues
Check List
- [ ] I have read the Contributing Guidelines and made commit messages that follow the guideline.
- [ ] I have run
npm run lint:js -- --fixand/ornpm run lint:md -- --fixfor my JavaScript and/or Markdown changes.- This is important as most of the cases your code changes might not be correctly linted
- [ ] I have run
npm run testto check if all tests are passing, and/ornpm run test -- -uto update snapshots if I created and/or updated React Components. - [ ] I have checked that the build works locally and that
npm run buildwork fine. - [ ] I've covered new added functionality with unit tests if necessary.