mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-27 19:00:42 -04:00
fix(client): update display prop on element (#42912)
* fix: profile menu icon overlapping content * refactor: profile icon usage
This commit is contained in:
19
client/src/components/helpers/border-color-picker.test.ts
Normal file
19
client/src/components/helpers/border-color-picker.test.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import borderColorPicker from './border-color-picker';
|
||||
|
||||
describe('Border color picker helper', () => {
|
||||
it('should get color for non donators and non top contributors', () => {
|
||||
expect(borderColorPicker(false, false)).toEqual('default-border');
|
||||
});
|
||||
|
||||
it('should get color for donators and top contributors', () => {
|
||||
expect(borderColorPicker(true, true)).toEqual('purple-border');
|
||||
});
|
||||
|
||||
it('should get color for only donators', () => {
|
||||
expect(borderColorPicker(true, false)).toEqual('gold-border');
|
||||
});
|
||||
|
||||
it('should get color for only top contributors', () => {
|
||||
expect(borderColorPicker(false, true)).toEqual('blue-border');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user