Skip to content
Snippets Groups Projects
Unverified Commit 23fe3927 authored by Paul Melnikow's avatar Paul Melnikow Committed by GitHub
Browse files

Refactor _makeBadgeData -> coalesceBadge (#2859)

`base.js` is pretty long and `_makeBadgeData` is one of the most complex
functions in it.

It's a pure function so it's easy to test in isolation. This moves the function into its own module and reorganizes the tests in a way that makes it evaluate what it's doing, and easier to test what is and isn't covered.

Ref https://github.com/badges/shields/pull/2796#discussion_r249251008
parent 2db22abd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment