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:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user