feat(profile): Add Top Contributor badge feature (#38348)

Co-authored-by: Twaha Rahman <39026437+Twaha-Rahman@users.noreply.github.com>
Co-authored-by: Twaha Rahman <mahi6703890@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Ashraf Nazar
2020-11-16 08:19:45 +00:00
committed by GitHub
parent 53f40b7f12
commit 9831df18e0
8 changed files with 59 additions and 11 deletions

View File

@@ -70,7 +70,7 @@ describe('<NavLinks />', () => {
expect(avatarHasClass(componentTree, 'gold-border')).toBeTruthy();
});
it('has avatar with green border for top contributors', () => {
it('has avatar with blue border for top contributors', () => {
const topContributorUserProps = {
user: {
username: 'test-user',
@@ -84,7 +84,7 @@ describe('<NavLinks />', () => {
.create(<AuthOrProfile {...topContributorUserProps} />)
.toJSON();
expect(avatarHasClass(componentTree, 'green-border')).toBeTruthy();
expect(avatarHasClass(componentTree, 'blue-border')).toBeTruthy();
});
it('has avatar with purple border for donating top contributors', () => {
const topDonatingContributorUserProps = {