github-langs icon indicating copy to clipboard operation
github-langs copied to clipboard

[Help needed] add unit test for utils: social.js

Open wildan3105 opened this issue 4 years ago • 0 comments

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: colors

Note Still not sure if this specific util can be covered by unit test. Maybe we can refactor it first? Open for suggestion though

wildan3105 avatar Oct 03 '20 03:10 wildan3105