fix(client): update display prop on element (#42912)

* fix: profile menu icon overlapping content

* refactor: profile icon usage
This commit is contained in:
Victor Duarte
2021-07-27 04:27:32 -05:00
committed by GitHub
parent 7b92f1df83
commit a4358fc56c
8 changed files with 76 additions and 86 deletions

View 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');
});
});