github-langs
github-langs copied to clipboard
[Help needed] add unit test for utils: social.js
Current behavior: Not all utils are fully covered with unit test.
Expected behavior: Every util should be covered by the unit test so we're confident with every change we make to that file. We can follow the unit test approach that I've made in this folder: https://github.com/wildan3105/github-langs/tree/master/tests/utils
Steps to reproduce:
File: https://github.com/wildan3105/github-langs/blob/master/lib/public/js/social.js
Coverage:
Note Still not sure if this specific util can be covered by unit test. Maybe we can refactor it first? Open for suggestion though