-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* relay updates * Reload the current list after trash/recover operation * sidebar updates partially complete * Updated sidebar to remove ArticleCoreListCounter and handle the count in the ArticlesDrawer queryRenderer instead, renamed ProjectsListCounter to DrawerListCounter to make it easier to know what it refers to, prop sorting * cleanup of unused relay config values and team value * clean up of unnecessary props and queried values --------- Co-authored-by: Alexandre Amorim <[email protected]>
- Loading branch information
1 parent
1962068
commit ea6afb0
Showing
8 changed files
with
49 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...awer/Projects/ProjectsListCounter.test.js → ...drawer/Projects/DrawerListCounter.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import React from 'react'; | ||
import ProjectsListCounter from './ProjectsListCounter'; | ||
import DrawerListCounter from './DrawerListCounter'; | ||
import { mountWithIntl } from '../../../../../test/unit/helpers/intl-test'; | ||
|
||
describe('<ProjectsListCounter />', () => { | ||
describe('<DrawerListCounter />', () => { | ||
it('renders nothing if numberOfItems is not a number', () => { | ||
const counter = mountWithIntl(<ProjectsListCounter numberOfItems="test" />); | ||
const counter = mountWithIntl(<DrawerListCounter numberOfItems="test" />); | ||
expect(counter.find('small').text()).toEqual(''); | ||
}); | ||
|
||
|
||
it('renders a small number as is', () => { | ||
const counter = mountWithIntl(<ProjectsListCounter numberOfItems={12} />); | ||
const counter = mountWithIntl(<DrawerListCounter numberOfItems={12} />); | ||
expect(counter.find('small').text()).toEqual('12'); | ||
}); | ||
|
||
it('makes long numbers shorter', () => { | ||
const counter = mountWithIntl(<ProjectsListCounter numberOfItems={12345} />); | ||
const counter = mountWithIntl(<DrawerListCounter numberOfItems={12345} />); | ||
expect(counter.find('small').text()).toEqual('12K'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters