prefer TypeScript for tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
e78108efe2
commit
7b5114a1b8
24 changed files with 5 additions and 1 deletions
Binary file not shown.
|
@ -15,7 +15,7 @@ const getOrderedLists = createSelector([(state: RootState) => state.lists], list
|
|||
return lists;
|
||||
}
|
||||
|
||||
return lists.toList().filter(item => !!item).sort((a, b) => (a as ListEntity).title.localeCompare((b as ListEntity).title)).take(4) as ImmutableList<ListEntity>;;
|
||||
return lists.toList().filter(item => !!item).sort((a, b) => (a as ListEntity).title.localeCompare((b as ListEntity).title)).take(4) as ImmutableList<ListEntity>;
|
||||
});
|
||||
|
||||
const ListPanel = () => {
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -42,6 +42,8 @@ describe('mutes reducer', () => {
|
|||
it('should handle MUTES_TOGGLE_HIDE_NOTIFICATIONS', () => {
|
||||
const state = ImmutableRecord({
|
||||
new: ImmutableRecord({
|
||||
isSubmitting: false,
|
||||
accountId: null,
|
||||
notifications: true,
|
||||
})(),
|
||||
})();
|
||||
|
@ -50,6 +52,8 @@ describe('mutes reducer', () => {
|
|||
};
|
||||
expect(reducer(state, action).toJS()).toEqual({
|
||||
new: {
|
||||
isSubmitting: false,
|
||||
accountId: null,
|
||||
notifications: false,
|
||||
},
|
||||
});
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue